diff options
author | Frederick Muriuki Muriithi | 2023-12-05 16:47:46 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-12-05 16:48:48 +0300 |
commit | d59c3c49b2fcb60550be68f241f2526895512e94 (patch) | |
tree | 0de23e15b8b9a66ab78d4fd394603f9ef54112dd /gn_auth/settings.py | |
parent | d2ad3b1abffdeeb52e1b5f5a303a381aa3dd477c (diff) | |
download | gn-auth-d59c3c49b2fcb60550be68f241f2526895512e94.tar.gz |
Enable CORS to allow access from GN2 javascript
Diffstat (limited to 'gn_auth/settings.py')
-rw-r--r-- | gn_auth/settings.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gn_auth/settings.py b/gn_auth/settings.py index e8611bf..394c557 100644 --- a/gn_auth/settings.py +++ b/gn_auth/settings.py @@ -19,3 +19,10 @@ REDIS_URI = "redis://localhost:6379/0" OAUTH2_SCOPE = ( "profile", "group", "role", "resource", "user", "masquerade", "introspect") + +CORS_ORIGINS = "*" +CORS_HEADERS = [ + "Content-Type", + "Authorization", + "Access-Control-Allow-Credentials" +] |