From e2fb1caefa1b483f3725d18fccff4c46051fab1f Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 1 May 2023 13:28:07 +0200 Subject: Fix nginx --- host/Rory-nginx/hosts/rory.gay/matrix.nix | 6 +++--- 1 file 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 # -- cgit 1.4.1