From 3f925808490a307c9b2e60a5bbd185ebd5421993 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Mon, 8 Jul 2024 15:31:19 -0400 Subject: [PATCH] chore: Update CORS and CSRF settings for demo purposes --- backend/server/demo/settings.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/server/demo/settings.py b/backend/server/demo/settings.py index c026b92..8726e92 100644 --- a/backend/server/demo/settings.py +++ b/backend/server/demo/settings.py @@ -188,13 +188,8 @@ SWAGGER_SETTINGS = { # For demo purposes only. Use a white list in the real world. -CORS_ORIGIN_ALLOW_ALL = False +CORS_ORIGIN_ALLOW_ALL = True -CORS_ALLOWED_ORIGINS = [ - 'http://localhost:3000', - 'http://adventurelog.app', - 'https://api.adventurelog.app', -] CSRF_TRUSTED_ORIGINS = [ 'https://api.adventurelog.app',