Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation on plugin-types does not allow for the empty directive #448

Open
oreoshake opened this issue Oct 23, 2020 · 0 comments
Open

Validation on plugin-types does not allow for the empty directive #448

oreoshake opened this issue Oct 23, 2020 · 0 comments

Comments

@oreoshake
Copy link
Contributor

Bugs

Note: The plugin-types grammar allows for an empty directive value in which case all instantions of embed and object will fail.

https://w3c.github.io/webappsec-csp/#directive-plugin-types

We validate it must match something like application/pdf which is not correct.

Expected outcome

Describe what you expected to happen

plugin_types should allow for an empty directive. Sending an empty array omits the directive. Sending none is not allowed by validation. An array of empty strings doesn't work either (validation)

Actual outcome

Configuration errors when trying to do the right thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant