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

Add support of 'require-trusted-types-for' csp directive #57

Open
luber opened this issue Dec 2, 2021 · 1 comment
Open

Add support of 'require-trusted-types-for' csp directive #57

luber opened this issue Dec 2, 2021 · 1 comment

Comments

@luber
Copy link

luber commented Dec 2, 2021

Need to be able to specify require-trusted-types-for directive:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/require-trusted-types-for

It would be nice to be able to add directives that are not yet supported by the library before building final header result...

luber added a commit to luber/aspnetcore-security-headers that referenced this issue Dec 2, 2021
add possibility to specify 'trusted-types' and 'require-trusted-types-for' CSP directives

re juunas11#57
@juunas11
Copy link
Owner

This could be added. It's currently an experimental directive though and not supported across all major browsers. There is a risk that it'll be changed/removed in the future.

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

2 participants