CSP: Remove nonce

The nonce wasn't relied on because it broke Safari and having it in
there forbids unsafe-inline, which breaks charts.
This commit is contained in:
Raphael Michel
2018-01-31 18:45:25 +01:00
parent 8143999803
commit e78a176e9f
2 changed files with 4 additions and 9 deletions

View File

@@ -11,7 +11,7 @@
<link rel="stylesheet" type="text/x-scss" href="{% static "lightbox/css/lightbox.scss" %}" />
{% endcompress %}
{% if css_file %}
<link rel="stylesheet" type="text/css" href="{{ css_file }}" nonce="{{ request.csp_nonce }}" />
<link rel="stylesheet" type="text/css" href="{{ css_file }}" />
{% else %}
{% compress css %}
<link rel="stylesheet" type="text/x-scss" href="{% static "pretixpresale/scss/main.scss" %}"/>