Inconsistency: content_security_policy
syntax
#96
Labels
inconsistency
Inconsistent behavior across browsers
topic: csp
Related to content security policy enforcement
Classic syntax
There are two syntaxes for
content_security_policy
. First one is the classic syntax. Defined as a string undercontent_security_policy
for extension pages. and undersandbox.content_security_policy
for sandboxes.Modern object syntax
The second and newer syntax uses an object notation. The object notation is as follows:
Support
Currently, MV3 in browsers require the newer object notation. While MV2 requires the classic string syntax.
Firefox has proposed to support using the object notation in MV2 as well. See Firefox announcement.
A proposal to keep supporting the classic syntax in mv3 can be found here:
Crbug 1158786. Tho as mentioned in the issue report this might not be a welcome change.
Action items
The text was updated successfully, but these errors were encountered: