Source code

Revision control

Copy as Markdown

Other Tools

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Variables:
# $directive (String): the name of a CSP directive, such as "script-src".
csp-error-missing-directive = Policy is missing a required ‘{ $directive }’ directive
# Variables:
# $directive (String): the name of a CSP directive, such as "script-src".
# $keyword (String): the name of a CSP keyword, usually 'unsafe-inline'.
csp-error-illegal-keyword = ‘{ $directive }’ directive contains a forbidden { $keyword } keyword
# Variables:
# $directive (String): the name of a CSP directive, such as "script-src".
# $scheme (String): a protocol name, such as "http", which appears as "http:", as it would in a URL.
csp-error-illegal-protocol = ‘{ $directive }’ directive contains a forbidden { $scheme }: protocol source
# Variables:
# $directive (String): the name of a CSP directive, such as "script-src".
# $scheme (String): a protocol name, such as "http", which appears as "http:", as it would in a URL.
csp-error-missing-host = { $scheme }: protocol requires a host in ‘{ $directive }’ directives
# Variables:
# $directive (String): the name of a CSP directive, such as "script-src".
# $source (String): the name of a CSP source, usually 'self'.
csp-error-missing-source = ‘{ $directive }’ must include the source { $source }
# Variables:
# $directive (String): the name of a CSP directive, such as "script-src".
# $scheme (String): a protocol name, such as "http", which appears as "http:", as it would in a URL.
csp-error-illegal-host-wildcard = { $scheme }: wildcard sources in ‘{ $directive }’ directives must include at least one non-generic sub-domain (e.g., *.example.com rather than *.com)