Skip to content

Commit 964957e

Browse files
committed
update CSRF and CORS whitelists
1 parent f4c72df commit 964957e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: alzi/alzi/deployment.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from .settings import BASE_DIR
44

55
ALLOWED_HOSTS = [os.environ['WEBSITE_HOSTNAME']]
6-
CORS_ORIGIN_WHITELIST = ['https://witty-pebble-0b4c4811e.4.azurestaticapps.net/', 'http://' + os.environ['WEBSITE_HOSTNAME'] ]
7-
CSRF_TRUSTED_ORIGINS = ['http://' + os.environ['WEBSITE_HOSTNAME']]
6+
CORS_ORIGIN_WHITELIST = ['https://witty-pebble-0b4c4811e.4.azurestaticapps.net/', 'https://' + os.environ['WEBSITE_HOSTNAME'] ]
7+
CSRF_TRUSTED_ORIGINS = ['https://' + os.environ['WEBSITE_HOSTNAME']]
88
DEBUG = False
99

1010
OPENAI_SECRET_KEY = os.environ['OPENAI_SECRET_KEY']

0 commit comments

Comments
 (0)