Skip to content

CSP2: Default value of default-src is incorrect #514

Open
@april

Description

Here is what the current specification says:

Let the default sources be the result of parsing the default-src directive’s value as a source list if a default-src directive is explicitly specified, and otherwise the U+002A ASTERISK character (*).

Which is incorrect, as it reads that these two statements are equivalent:

Content-Security-Policy: default-src *; upgrade-insecure-requests
Content-Security-Policy: upgrade-insecure-requests

The statement should probably read something like:

Let the default sources be the result of parsing the default-src directive’s value as a source list if a default-src directive is explicitly specified, and otherwise the list of all possible sources.

(cc: @hillbrad, as @mikewest told me to)

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions