minesweeper-frontend/nginx.conf
2025-01-21 23:51:02 +01:00

14 lines
419 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
location / {
add_header "Access-Control-Allow-Origin" "*";
add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS, PUT, DELETE";
add_header "Access-Control-Allow-Headers" "Origin, X-Requested-With, Content-Type, Accept, Authorization";
if ($request_method = OPTIONS) {
return 204;
}
}
}