SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 1fd3a672 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Remove unneeded nonce in webpack render_bundle

parent d844bc7c
No related branches found
No related tags found
No related merge requests found
......@@ -44,10 +44,7 @@
<script type="text/javascript" src="{% static 'scipost/mathjax-config.js' %}"></script>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML,Safe"></script>
{% with nonce_attribute='nonce='|concatenate:request.csp_nonce %}
<h1>nonce_attribute: {{ nonce_attribute }}</h1>
{% render_bundle 'main' 'js' attrs=nonce_attribute %}
{% endwith %}
{% render_bundle 'main' 'js' %}
{% block footer_script %}
{% endblock footer_script %}
......
......@@ -2,14 +2,11 @@
{% load render_bundle from webpack_loader %}
{% load staticfiles %}
{% load scipost_extras %}
{% block body_class %}{{ block.super }} homepage{% endblock %}
{% block footer_script %}
{% with nonce_attribute='nonce='|concatenate:request.csp_nonce %}
{% render_bundle 'homepage' 'js' attrs=nonce_attribute %}
{% endwith %}
{% render_bundle 'homepage' 'js' %}
{% endblock %}
{% block content %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment