Skip to content

CSP "none" combined with other sources #913

Description

@baknu

Item 2 of the following comment states how Internet.nl now handles CSP "none" when combined with other sources, according to @gthess: #325 (comment)
Below is the relevant quote:

Technically no. But browsers do not raise an error on that. The existence of 'none' guarantees that the directive will result in an empty set of sources, regardless of what else is specified in the directive. We follow that and also allow 'none' to coexist with other syntactically.

In the CSP specification, however, I read the following:

NOTE: The 'none' keyword has no effect when other source expressions are present. That is, the list « 'none' » does not match any URL. A list consisting of « 'none', https://example.com/ », on the other hand, would match https://example.com/.

Source: https://www.w3.org/TR/CSP3/#match-url-to-source-list

So our CSP subtest does not seem to be fully in line with the CSP specification.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions