# Django Plotly Dash CSP settings

**URL:** <https://community.plotly.com/t/django-plotly-dash-csp-settings/65350>\
**Category:** Dash Python\
**Created:** [June 22, 2022, 11:04am UTC](https://community.plotly.com/t/django-plotly-dash-csp-settings/65350 "2022-06-22T11:04:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tteulings](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@tteulings](https://community.plotly.com/u/tteulings)\
**Post date:** [June 22, 2022, 11:04am UTC](https://community.plotly.com/t/django-plotly-dash-csp-settings/65350/1 "2022-06-22T11:04:33Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![delsim](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@delsim](https://community.plotly.com/u/delsim)\
**Post date:** [June 22, 2022, 5:03pm UTC](https://community.plotly.com/t/django-plotly-dash-csp-settings/65350/2 "2022-06-22T17:03:14Z")

</div>

To what extent does [django-csp](https://github.com/mozilla/django-csp) cover (or not cover) what you’re trying to achieve?
