diff options
Diffstat (limited to 'host')
-rwxr-xr-x | host/Rory-nginx/hosts/rory.gay/matrix.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/Rory-nginx/hosts/rory.gay/matrix.nix b/host/Rory-nginx/hosts/rory.gay/matrix.nix index f97504b..26507fc 100755 --- a/host/Rory-nginx/hosts/rory.gay/matrix.nix +++ b/host/Rory-nginx/hosts/rory.gay/matrix.nix @@ -4,13 +4,13 @@ locations."/_matrix" = { proxyPass = "http://192.168.1.5:8008"; extraConfig = '' - if($request_method = 'OPTIONS') { + if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + add_header 'Access-Control-Allow-Methods' '*'; # # Custom headers and headers various browsers *should* be OK with but aren't # - add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; + add_header 'Access-Control-Allow-Headers' '*'; # # Tell client that this pre-flight info is valid for 20 days # |