diff options
| author | Grisha Shipunov | 2025-05-28 12:45:10 +0200 |
|---|---|---|
| committer | Grisha Shipunov | 2025-05-28 12:45:10 +0200 |
| commit | e61c4d2e1a08cf05862e9994bc028364bf237bed (patch) | |
| tree | f89c44cada1604ec83d45636805e79c46d9184c1 /hosts/cloud/proxy/conduwuit.nix | |
| parent | b4fa571ffb3b83c2491645c9b632010726cb585e (diff) | |
add explicit headers
Diffstat (limited to 'hosts/cloud/proxy/conduwuit.nix')
| -rw-r--r-- | hosts/cloud/proxy/conduwuit.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hosts/cloud/proxy/conduwuit.nix b/hosts/cloud/proxy/conduwuit.nix index c731066..97ba4a3 100644 --- a/hosts/cloud/proxy/conduwuit.nix +++ b/hosts/cloud/proxy/conduwuit.nix @@ -9,6 +9,8 @@ let proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Access-Control-Allow-Origin *; + proxy_set_header Access-Control-Allow-Methods 'GET, POST, PUT, DELETE, OPTIONS'; + proxy_set_header Access-Control-Allow-Headers 'X-Requested-With, Content-Type, Authorization'; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; |
