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 GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
manifest-src

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報