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:
commit
5b50d7c125
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue