0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VScodeで書いたindex.htmlをChromeで表示する

Posted at

はじめに

(初心者) VScodeでindex.htmlを書き始めたものの、ブラウザでの表示確認の方法がわからない。

問題

VScodeで書いた index.html をChromeにドラック&ドロップしても反応せず、Chromeのタグにはabout:blank#blocked のエラー表示される。

原因

Chromeなどのブラウザでは、セキュリティ上の仕様や設定によって
ローカルファイルの読み込みがブロックされることがある。
(Chromeの仕様変更やセキュリティソフトの影響の場合もあり)

解決

chromeブラウザを選択した状態で、Ctrl + O(オー)(Macでは ⌘ + O(オー))で、index.htmlファイルを選択し、開く。これでブラウザ上に自分のHTMLが正しく表示されます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?