Run with main branch and browser reports that "Refused to execut inline script etc"

オープン
#1,187 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
node.js, typescript
領域
security, web-dev

調査の方向性

まず、報告されている Node v16.15.0 を使用し、main branch で npm i と npm start を実行して問題を再現し、次に個別のモジュールの checkout と比較します。ブラウザーによる Content Security Policy の拒否を追跡し、main branch の samples が inline-script エラーなしで起動することを確認します。

索引モデルが issue の本文から書いたものです。

説明

Got this issue with browser after following instructions i.e npm i and npm start on main branch.

Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-kLOQNAVOaBgADiUv3KS/St2g6k1exicli/nlGA4Ku2Y='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.

Using node v16.15.0.

I had not issues when running individual module checkout.

主要言語
TypeScript
スター
804
フォーク
826
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googlemaps/js-samples のほかの issue

googlemaps/js-samples の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。