1
0
Fork 0

Added support for secure cookies and django-csp

This commit is contained in:
Robert George 2023-02-01 12:59:10 -08:00
parent 006ff697b9
commit 36605efd20
17 changed files with 28 additions and 15 deletions

View file

@ -1,6 +1,6 @@
{% load i18n %}
<script>
<script nonce="{{request.csp_nonce}}">
const tour = new Shepherd.Tour({
exitOnEsc: true,
});

View file

@ -1,6 +1,6 @@
{% load i18n %}
<script>
<script nonce="{{request.csp_nonce}}">
const tour = new Shepherd.Tour({
exitOnEsc: true,
});

View file

@ -1,6 +1,6 @@
{% load i18n %}
<script>
<script nonce="{{request.csp_nonce}}">
const initiateTour = new Shepherd.Tour({
exitOnEsc: true,
});

View file

@ -2,7 +2,7 @@
{% load utilities %}
{% load user_page_tags %}
<script>
<script nonce="{{request.csp_nonce}}">
const tour = new Shepherd.Tour({
exitOnEsc: true,

View file

@ -1,6 +1,6 @@
{% load i18n %}
<script>
<script nonce="{{request.csp_nonce}}">
let localResult = document.querySelector(".local-book-search-result");
let remoteResult = document.querySelector(".remote-book-search-result");

View file

@ -1,6 +1,6 @@
{% load i18n %}
<script>
<script nonce="{{request.csp_nonce}}">
const tour = new Shepherd.Tour({
exitOnEsc: true,
});

View file

@ -1,6 +1,6 @@
{% load i18n %}
<script>
<script nonce="{{request.csp_nonce}}">
const tour = new Shepherd.Tour({
exitOnEsc: true,
});

View file

@ -1,6 +1,6 @@
{% load i18n %}
<script>
<script nonce="{{request.csp_nonce}}">
const tour = new Shepherd.Tour({
exitOnEsc: true,
});

View file

@ -183,7 +183,7 @@
{% include 'snippets/footer.html' %}
{% endblock %}
<script>
<script nonce="{{request.csp_nonce}}">
var csrf_token = '{{ csrf_token }}';
</script>

View file

@ -11,7 +11,7 @@
<title>{% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{% sass_src site_theme %}" rel="stylesheet" type="text/css" />
<script>
<script nonce="{{request.csp_nonce}}">
function closeWindow() {
window.close();
}
@ -32,7 +32,7 @@
</div>
</div>
<script>
<script nonce="{{request.csp_nonce}}">
var csrf_token = '{{ csrf_token }}';
</script>
<script src="{% static 'js/bookwyrm.js' %}?v={{ js_cache }}"></script>

View file

@ -1,5 +1,5 @@
{% load i18n %}
<script>
<script nonce="{{request.csp_nonce}}">
var registerStats = new Chart(
document.getElementById('register_stats'),
{

View file

@ -1,5 +1,5 @@
{% load i18n %}
<script>
<script nonce="{{request.csp_nonce}}">
var statusStats = new Chart(
document.getElementById('status_stats'),

View file

@ -1,5 +1,5 @@
{% load i18n %}
<script>
<script nonce="{{request.csp_nonce}}">
var userStats = new Chart(
document.getElementById('user_stats'),

View file

@ -1,5 +1,5 @@
{% load i18n %}
<script>
<script nonce="{{request.csp_nonce}}">
var worksStats = new Chart(
document.getElementById('works_stats'),