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
https://github.com/cak/secure/blob/04dd035e560583baeba06f5714f273b542c07767/secure/headers.py#L452
The examples of adding a nonce to CSP that I've seen in, e.g., https://csp.withgoogle.com/docs/strict-csp.html#example and https://content-security-policy.com/nonce/ show 'nonce-rAnd0m'.
'nonce-rAnd0m'
The CSP3 spec specifies the nonce production as:
; Nonces: 'nonce-[nonce goes here]' nonce-source = "'nonce-" [base64-value](https://www.w3.org/TR/CSP3/#grammardef-base64-value) "'" base64-value = 1*( [ALPHA](https://tools.ietf.org/html/rfc5234#appendix-B.1) / [DIGIT](https://tools.ietf.org/html/rfc5234#appendix-B.1) / "+" / "/" / "-" / "_" )*2( "=" )
Are the characters < and > even allowed?
<
>
The text was updated successfully, but these errors were encountered:
Thank you @jrobbins-LiveData!
Sorry, something went wrong.
remove angle brackets from nonce. fixes #21
255fa91
No branches or pull requests
https://github.com/cak/secure/blob/04dd035e560583baeba06f5714f273b542c07767/secure/headers.py#L452
The examples of adding a nonce to CSP that I've seen in, e.g., https://csp.withgoogle.com/docs/strict-csp.html#example and https://content-security-policy.com/nonce/ show
'nonce-rAnd0m'
.The CSP3 spec specifies the nonce production as:
Are the characters
<
and>
even allowed?The text was updated successfully, but these errors were encountered: