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

Merge pull request #55 from YunoHost-Apps/stable

Nginx cors headers changed
This commit is contained in:
Gérard Collin 2024-04-11 12:09:14 +02:00 committed by GitHub
commit 5b50d7c125
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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