diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-05-01 13:28:07 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-05-01 13:28:07 +0200 |
commit | e2fb1caefa1b483f3725d18fccff4c46051fab1f (patch) | |
tree | b4b7105775721c6361955387de7fb1a40ec45d63 | |
parent | Add OPTIONS bypass for matrix (diff) | |
download | Rory-Open-Architecture-e2fb1caefa1b483f3725d18fccff4c46051fab1f.tar.xz |
Fix nginx
-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 # |