CSRF $#%?@!!. Also konami to django admin
This commit is contained in:
parent
e8abfaf51b
commit
b838c79cdb
@ -30,7 +30,7 @@ SECRET_KEY = 'django-insecure-64qxpe55#9wy=5@#dl0)3w7ywxh48m!f&!slp9e7v4lh@hjdct
|
|||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
CSRF_TRUSTED_ORIGINS = ['https://*']
|
CSRF_TRUSTED_ORIGINS = ['https://*.ponteilla.net']
|
||||||
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
@ -67,7 +67,7 @@ function konami() {
|
|||||||
$(document).keydown(function (e) {
|
$(document).keydown(function (e) {
|
||||||
if (e.keyCode === k[n++]) {
|
if (e.keyCode === k[n++]) {
|
||||||
if (n === k.length) {
|
if (n === k.length) {
|
||||||
document.location.href = 'newtikette.html';
|
document.location.href = backend_api + 'admin';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user