We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2c983 commit 9f8c82aCopy full SHA for 9f8c82a
src/main/kotlin/dniel/forwardauth/infrastructure/spring/AuthorizeController.kt
@@ -61,7 +61,7 @@ class AuthorizeController(val authorizeHandler: AuthorizeHandler) {
61
it is AuthorizeHandler.AuthEvent.NeedRedirectEvent
62
} as AuthorizeHandler.AuthEvent.NeedRedirectEvent?
63
if (redirectEvent != null) {
64
- if ((acceptContent != null && acceptContent == "application/json") ||
+ if ((acceptContent != null && acceptContent.contains("application/json")) ||
65
requestedWithHeader != null && requestedWithHeader == "XMLHttpRequest") {
66
return ResponseEntity.status(HttpStatus.FORBIDDEN).build()
67
} else {
0 commit comments