Update file default.conf
This commit is contained in:
parent
dc6124c1f1
commit
42872c68f8
@ -22,9 +22,16 @@ server {
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
}
|
||||
location /user/ {
|
||||
if ($request_method = OPTIONS) {
|
||||
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 always;
|
||||
return 200;
|
||||
}
|
||||
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-auth-service:8080;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user