Update default.conf
This commit is contained in:
parent
bfebe2dd9a
commit
025eca7614
@ -21,6 +21,15 @@ server {
|
||||
}
|
||||
|
||||
location /answer/ {
|
||||
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,x-sessionkey always;
|
||||
add_header Access-Control-Expose-Headers x-sessionkey always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
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,x-sessionkey always;
|
||||
|
Loading…
Reference in New Issue
Block a user