Answers for "allow cors in nginx"

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
3

cors access-control-allow-origin header to nginx

add_header 'Access-Control-Allow-Origin' 'origin'
Posted by: Guest on March-07-2021

Browse Popular Code Answers by Language