cert and cors
All checks were successful
Deploy NixOS / deploy (push) Successful in 32s

This commit is contained in:
2026-02-13 00:25:20 -07:00
parent 3ea2e7eaaa
commit 14d9c8bec6
2 changed files with 14 additions and 3 deletions

View File

@@ -402,6 +402,14 @@ in
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
add_header Access-Control-Allow-Origin "*" always;
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS" always;
add_header Access-Control-Allow-Headers "Authorization, Content-Type" always;
if ($request_method = OPTIONS) {
return 204;
}
'';
};