Enable cors for everything.

This commit is contained in:
Mario Zechner 2023-08-04 14:16:28 +02:00
parent 2748b1c81e
commit d2252d4507
1 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,12 @@ server {
http2_push /chart.js;
http2_push /main.js;
etag on;
# Enable CORS for all files
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type';
add_header 'Access-Control-Allow-Credentials' 'true' always;
}
error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 414 415 416 417 418 421 422 423 424 425 426 428 429 431 451 500 501 502 503 504 505 506 507 508 510 511 /404;