Django Plotly Dash CSP settings

Hi forum!

We are working on a Django Plotly Dash project and are looking into security. We are required to implement a CSP, however I am having some issues. It seems that Dash needs script-src unsafe-inline to function. I have seen in Dash there are ways to add the hashes, however I does not seem that this can be done in Django. Are there any other ways to create a stricter CSP?

Thanks in Advance!

To what extent does django-csp cover (or not cover) what you’re trying to achieve?