Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘self'”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-xxx’), or a nonce (‘nonce-…’) is required to enable inline execution.ってエラー

Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘self'”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-xxx’), or a nonce (‘nonce-…’) is required to enable inline execution.

<script></script>で囲った中に書いてあるコードを外部ファイル化したら直った。

カテゴリー: のーと タグ: パーマリンク

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です