Skip to content

CSP: Allow directive references. #219

Open
@mikewest

Description

@mikewest

Rather than repeating hosts all over the place, we could shrink headers (in a backwards incompatible fashion :( ) by allowing one directive to reference another. That is, instead of:

default-src 'none'; \
    img-src example.com not-example.com really-not-example.com \
    script-src example.com not-example.com really-not-example.com \
    style-src example.com not-example.com really-not-example.com

we could conceivably write:

default-src 'none'; \
    img-src example.com not-example.com really-not-example.com \
    script-src 'img-src'
    style-src 'img-src'

or something similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions