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:
parent
aa1d2e7806
commit
0f169a16f7
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…
Add table
Reference in a new issue