CSP: manifest-src
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since August 2016.
HTTP の Content-Security-Policy
: manifest-src
ディレクティブは、どのマニフェストがリソースに適用されるかを指定します。
CSP バージョン | 3 |
---|---|
ディレクティブ種別 | フェッチディレクティブ |
default-src による代替 |
あり。このディレクティブがない場合、ユーザーエージェントは default-src ディレクティブを探します。
|
構文
manifest-src
ポリシーには、 1 つ以上のソースが許可されています。
http
Content-Security-Policy: manifest-src <source>;
Content-Security-Policy: manifest-src <source> <source>;
ソース
<source>
は、 CSP ソース値にあるいずれかの値を取ることができます。
なお、この同じ値のセットはすべてのフェッチディレクティブ(と 他の多くのディレクティブ)で使用できます。
例
違反する場合
この CSP ヘッダーがある場合、
http
Content-Security-Policy: manifest-src https://example.com/
以下の <link>
の各要素はブロックされ、読み込まれません。
html
<link rel="manifest" href="https://not-example.com/manifest" />
仕様書
Specification |
---|
Content Security Policy Level 3 # directive-manifest-src |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
manifest-src |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.