Skip to content

CSP header should start with default-src 'none', but what if 'base-uri'? #37

@mejofi

Description

@mejofi

The csp_defaultsrc_none test fails if the CSP starts with 'base-uri';

[FAIL] Content-Security-Policy header should start with default-src 'none' (base-uri 'none'; default-src 'none'; frame-ancestors 'none'; font-src 'self' ...)

Which makes sense, but it may be possible that this is a legitimate order, because base-uri does have the default-src fallback, according to the documentation? 🤔

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/base-uri

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions