ENH: Set up local CORS (#24)

This commit is contained in:
Matthew Ryan Dillon 2017-09-01 05:44:25 -07:00 committed by GitHub
parent 3b3069b577
commit b9659f6622

View file

@ -47,7 +47,9 @@ if 'test' in sys.argv[1:] or 'jenkins' in sys.argv[1:]:
MIGRATION_MODULES = DisableMigrations() MIGRATION_MODULES = DisableMigrations()
MANIFEST_URL = env('MANIFEST_URL', default=None) 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 = { DJOSER = {
'SITE_NAME': 'CCDB (test)', 'SITE_NAME': 'CCDB (test)',