We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code:
csp({ directives: { "require-trusted-types-for": ["script"], } })
results in this header:
content-security-policy: script-src 'self' 'unsafe-eval' 'unsafe-inline' https:;style-src 'self' 'unsafe-inline';font-src 'self' data:;default-src 'self';object-src 'none';base-uri 'none';require-trusted-types-for script
which is invalid and results in:
Invalid expression in 'require-trusted-types-for' Content Security Policy directive: script. Did you mean 'script'?
The type for require-trusted-types-for is Array<"script"> so that is the only thing I can pass there.
require-trusted-types-for
Array<"script">
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following code:
results in this header:
which is invalid and results in:
The type for
require-trusted-types-for
isArray<"script">
so that is the only thing I can pass there.The text was updated successfully, but these errors were encountered: