You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a comment it was pointed out that users with django-csp enabled may need some extra set up to allow the debug toolbar to function correctly. Since these users will get the nonce applied to the toolbar's <script> tags.
Perhaps some documentation along these lines should be included in the documentation...
Debug Toolbar and CSP Nonces
When using django-csp, the toolbar's inline <script> tags will include CSP nonces. To ensure the debug toolbar functions correctly during development, make sure the nonce is included in your script-src directive in the Content-Security-Policy header.
The text was updated successfully, but these errors were encountered:
In our case, we didn't want to set unsafe-inline for script-src and style-src and therefore I was a bit confused that I had these issues after updating it since it was nowhere documented that you need to do that.
@robhudson is it possible for us to include example code for:
To ensure the debug toolbar functions correctly during development, make sure the nonce is included in your script-src directive in the Content-Security-Policy header.
In a comment it was pointed out that users with django-csp enabled may need some extra set up to allow the debug toolbar to function correctly. Since these users will get the nonce applied to the toolbar's
<script>
tags.Perhaps some documentation along these lines should be included in the documentation...
Debug Toolbar and CSP Nonces
When using django-csp, the toolbar's inline
<script>
tags will include CSP nonces. To ensure the debug toolbar functions correctly during development, make sure the nonce is included in yourscript-src
directive in theContent-Security-Policy
header.The text was updated successfully, but these errors were encountered: