Skip to content

Directive: manifest src

Ryan Parman edited this page Jun 8, 2024 · 6 revisions

Overview

The manifest-src directive specifies which Web app manifests can be applied to the resource.

Affects: Web app manifests

Required reading:

Usage examples

Accepts one or more schemes or hosts, the 'self' keyword, or the 'none' keyword.

manifest-src 'none'
manifest-src 'self'
manifest-src example.com
manifest-src example.com example.org
manifest-src https://*.example.com
manifest-src https:

Fallbacks

manifest-src will fallback to default-src if it is undefined.

Possible errors

[ERROR] directive manifest-src has an invalid value

Possible allowed values for manifest-src are:

  1. 'none'
  2. A scheme like https:
  3. A host like example.com (internationalized domain names are not permitted and must be converted to punycode first)
  4. A keyword like 'self'
  5. A nonce (although this is highly unusual)
  6. A sha256 hash (although this is highly unusual)

This error message means that the value does not match expected/correct patterns for any of these types.

For developers

ABNF (CSP3)

directive-name  = "manifest-src"
directive-value = serialized-source-list

See ABNF: serialized-source-list

Type

References

Clone this wiki locally