From b9659f6622d2a3fc4409ccf7b174b9fda745317e Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 1 Sep 2017 05:44:25 -0700 Subject: [PATCH] ENH: Set up local CORS (#24) --- config/settings/local.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/settings/local.py b/config/settings/local.py index 1440799..4cefe8b 100644 --- a/config/settings/local.py +++ b/config/settings/local.py @@ -47,7 +47,9 @@ if 'test' in sys.argv[1:] or 'jenkins' in sys.argv[1:]: MIGRATION_MODULES = DisableMigrations() MANIFEST_URL = env('MANIFEST_URL', default=None) -CORS_ORIGIN_ALLOW_ALL = True +CORS_ORIGIN_ALLOW_ALL = False +CORS_ALLOW_CREDENTIALS = True +CORS_ORIGIN_WHITELIST = ('localhost:4200',) DJOSER = { 'SITE_NAME': 'CCDB (test)',