diff --git a/backend/zetikettes/zetikettes/settings.py b/backend/zetikettes/zetikettes/settings.py index fe69c80..56935d3 100644 --- a/backend/zetikettes/zetikettes/settings.py +++ b/backend/zetikettes/zetikettes/settings.py @@ -30,7 +30,7 @@ SECRET_KEY = 'django-insecure-64qxpe55#9wy=5@#dl0)3w7ywxh48m!f&!slp9e7v4lh@hjdct DEBUG = True ALLOWED_HOSTS = ['*'] -CSRF_TRUSTED_ORIGINS = ['https://*'] +CSRF_TRUSTED_ORIGINS = ['https://*.ponteilla.net'] # Application definition diff --git a/frontend/zetikettes.js b/frontend/zetikettes.js index dc0296c..fa8fc5e 100644 --- a/frontend/zetikettes.js +++ b/frontend/zetikettes.js @@ -67,7 +67,7 @@ function konami() { $(document).keydown(function (e) { if (e.keyCode === k[n++]) { if (n === k.length) { - document.location.href = 'newtikette.html'; + document.location.href = backend_api + 'admin'; } } else {