diff --git a/default.conf b/default.conf index 6bdd7ec..83f634a 100644 --- a/default.conf +++ b/default.conf @@ -176,6 +176,10 @@ server { proxy_pass http://dwarfener; } if ($host = oauth.pena.digital) { + add_header Access-Control-Allow-Origin $http_origin always; + add_header Access-Control-Allow-Credentials true always; + add_header Access-Control-Allow-Headers content-type,authorization always; + add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; proxy_pass http://pena-social-auth-service:8000; } if ($host = squiz.pena.digital) {