0.4.54 fix 403
This commit is contained in:
@@ -15,8 +15,9 @@ from django.template.loader import render_to_string
|
||||
from django.urls import reverse
|
||||
from .funcs import *
|
||||
from django.utils.translation import activate, get_language_info
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
|
||||
|
||||
@csrf_exempt
|
||||
def get_content_for_section_ajax(request):
|
||||
|
||||
if request.method != 'POST':
|
||||
|
||||
@@ -28,8 +28,8 @@ DEBUG = True
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = ['https://aerbim.com/']
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
# CSRF_TRUSTED_ORIGINS = ['https://aerbim.com/']
|
||||
# SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
|
||||
# Application definition
|
||||
|
||||
|
||||
Reference in New Issue
Block a user