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 #54 from YunoHost-Apps/dev

nginx cors headers changed
This commit is contained in:
Gérard Collin 2024-04-11 12:08:32 +02:00 committed by GitHub
commit f9bf8d3b3b
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