1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dont-code_ynh.git synced 2024-09-03 18:26:34 +02:00

nginx cors headers changed

This commit is contained in:
Gérard Collin 2024-04-11 12:07:49 +02:00
parent aa1d2e7806
commit 0f169a16f7

View file

@ -3,12 +3,11 @@
location __PATH__/ {
# CORS support
add_header Access-Control-Allow-Origin *;
more_set_headers 'Access-Control-Allow-Origin: *';
# Handling preflight requests
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Methods *;
add_header Access-Control-Allow-Headers *;
more_set_headers 'Access-Control-Allow-Methods: *' 'Access-Control-Allow-Headers: *';
}
# Path to source