mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-10-18 20:26:08 +02:00
prevent login redirect to any API url
This commit is contained in:
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user