Skip to content

Commit

Permalink
Replacing all occurrences of unsafeInlineCompatiblity to unsafeInline…
Browse files Browse the repository at this point in the history
…Compatibility. (#1650)
  • Loading branch information
PedroD authored and Atinux committed Oct 18, 2019
1 parent 4f6efac commit cdd6526
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion en/api/configuration-render.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ See [serve-static](https://www.npmjs.com/package/serve-static) docs for possible

> Use this to configure to load external resources of Content-Security-Policy
Note that CSP hashes will not be added if `script-src` policy contains `'unsafe-inline'`. This is due to browser ignoring `'unsafe-inline'` if hashes are present. Set option `unsafeInlineCompatiblity` to `true` if you want both hashes and `'unsafe-inline'` for CSPv1 compatibility.
Note that CSP hashes will not be added if `script-src` policy contains `'unsafe-inline'`. This is due to browser ignoring `'unsafe-inline'` if hashes are present. Set option `unsafeInlineCompatibility` to `true` if you want both hashes and `'unsafe-inline'` for CSPv1 compatibility.

Example (`nuxt.config.js`)

Expand Down
2 changes: 1 addition & 1 deletion ja/api/configuration-render.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pushAssets: (req, res, publicPath, preloadFiles) => preloadFiles

> これは Content-Security-Policy で適用された外部リソースを読み込む設定をするために使用します。
`script-src` ポリシーに `'unsafe-inline'` が含まれている場合、CSP のハッシュは追加されないことに注意してください。これは、ハッシュが存在する場合、ブラウザが `'unsafe-inline'` を無視するためです。CSPv1 の後方互換性のために `'unsafe-inline'` とハッシュの両方の定義が必要な場合は、オプションの `unsafeInlineCompatiblity``true` に設定します。
`script-src` ポリシーに `'unsafe-inline'` が含まれている場合、CSP のハッシュは追加されないことに注意してください。これは、ハッシュが存在する場合、ブラウザが `'unsafe-inline'` を無視するためです。CSPv1 の後方互換性のために `'unsafe-inline'` とハッシュの両方の定義が必要な場合は、オプションの `unsafeInlineCompatibility``true` に設定します。

例 (`nuxt.config.js`)

Expand Down

0 comments on commit cdd6526

Please sign in to comment.