From d59c3c49b2fcb60550be68f241f2526895512e94 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 5 Dec 2023 16:47:46 +0300 Subject: Enable CORS to allow access from GN2 javascript --- gn_auth/settings.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gn_auth/settings.py') 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" +] -- cgit v1.2.3