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
Thanks for adding the vite_react_refresh template tag in #53.
My site is configured with a Content Security Policy using django-csp. If I add {% vite_react_refresh %} in my base template and navigate to a page in my browser, the following error is printed to the console:
Refused to execute a script because its hash, its nonce, or 'unsafe-inline' does not appear in the script-src directive of the Content Security Policy.
As a workaround, I've replaced vite_react_refresh with a <script> tag that includes the generated nonce, like so:
Thanks for adding the
vite_react_refresh
template tag in #53.My site is configured with a Content Security Policy using django-csp. If I add
{% vite_react_refresh %}
in my base template and navigate to a page in my browser, the following error is printed to the console:As a workaround, I've replaced
vite_react_refresh
with a<script>
tag that includes the generated nonce, like so:It'd be nice to be able to pass the nonce into
vite_react_refresh
as a parameter.The text was updated successfully, but these errors were encountered: