localenv/nginx/cors_preflight.conf
2023-08-05 22:10:48 +02:00

7 lines
438 B
Plaintext

# add_header 'Access-Control-Allow-Origin' 'https://my-front:5173' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, PATCH' always;
add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization' always;
add_header 'Access-Control-Max-Age' 1728000 always;
# add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Access-Control-Allow-Credentials' 'true' always;
# add_header 'Content-Length' 0;