Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing a small typo on SSR CSP property name. #1650

Merged
merged 1 commit into from
Oct 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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