resolve login page flicker

This commit is contained in:
Jason Ertel
2023-08-01 16:30:24 -04:00
parent da51fd59a0
commit 8b3a38f573
2 changed files with 4 additions and 1 deletions

View File

@@ -296,7 +296,9 @@ http {
error_page 429 = @error429;
location @error401 {
add_header Set-Cookie "AUTH_REDIRECT=$request_uri;Path=/;Max-Age=14400";
if ($request_uri ~* ^/(?!(^/api/.*))) {
add_header Set-Cookie "AUTH_REDIRECT=$request_uri;Path=/;Max-Age=14400";
}
return 302 /auth/self-service/login/browser;
}