mirror of https://gitlab.crans.org/nounous/nixos
Adding OPTIONS to allowed methods for cors
parent
69f160aee9
commit
061130c0d5
|
|
@ -338,6 +338,7 @@ in
|
||||||
"/.well-known/matrix/".extraConfig = ''
|
"/.well-known/matrix/".extraConfig = ''
|
||||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET' always;
|
add_header 'Access-Control-Allow-Methods' 'GET' always;
|
||||||
|
add_header 'Access-Control-Allow-Methods' 'OPTIONS' always;
|
||||||
add_header 'Access-Control-Allow-Credentials' 'false' always;
|
add_header 'Access-Control-Allow-Credentials' 'false' always;
|
||||||
add_header 'Vary' 'Origin' always;
|
add_header 'Vary' 'Origin' always;
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue