Answers for "nginx set cors headers"

1

nginx cors

#this work for cors only one is allowed
location / {
    add_header 'Access-Control-Allow-Origin' '*' always;
}
Posted by: Guest on February-02-2022
5

nginx enable cors

add_header Access-Control-Allow-Origin *;
Posted by: Guest on April-13-2020

Browse Popular Code Answers by Language