prevent login redirect to any API url

This commit is contained in:
Jason Ertel
2026-07-14 13:52:32 -04:00
parent 6fc0fd954c
commit 63d4061500
+1 -1
View File
@@ -399,7 +399,7 @@ http {
error_page 429 = @error429;
location @error401 {
if ($request_uri ~* (^/api/.*|^/connect/.*|^/oauth2/.*|^/.*\.map$)) {
if ($request_uri ~* (^.*/api/.*|^/connect/.*|^/oauth2/.*|^/.*\.map$)) {
return 401;
}