ops: add csrf trusted origins for production deployment

This commit is contained in:
2026-04-28 21:02:50 +02:00
parent 7f0f292b47
commit 963441fe50
+1 -1
View File
@@ -7,7 +7,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = config('SECRET_KEY', default='poc-secret-key') SECRET_KEY = config('SECRET_KEY', default='poc-secret-key')
DEBUG = config('DEBUG', default=True, cast=bool) DEBUG = config('DEBUG', default=True, cast=bool)
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['*']
CSRF_TRUSTED_ORIGINS=['https://*.bigoscloud.com']
INSTALLED_APPS = [ INSTALLED_APPS = [
'daphne', 'daphne',
'django.contrib.admin', 'django.contrib.admin',