-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Hi,
we have some SPA apps that use oauth2 to auth against geonode. In past I've needed to update my local build
geonode-docker/docker/nginx/geonode.conf.envsubst
Lines 93 to 101 in 62a0d29
| if ($request_method = OPTIONS) { | |
| add_header Access-Control-Allow-Methods "GET, POST, PUT, PATCH, OPTIONS"; | |
| add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept"; | |
| add_header Access-Control-Allow-Credentials true; | |
| add_header Content-Length 0; | |
| add_header Content-Type text/plain; | |
| add_header Access-Control-Max-Age 1728000; | |
| return 200; | |
| } |
@@ -116,6 +116,7 @@ location / {
set $upstream django:8000;
if ($request_method = OPTIONS) {
+ add_header Access-Control-Allow-Origin "*";
To not run into a CORS error. I wonder how other devs deal with ACAO. I do not see a way to set Access-Control-Allow-Origin dynamicully but would try to avoid using a forked version of this image.
Thanks,
Toni
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested