Skip to content

Commit

Permalink
Fix condition for simple top level navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
papegaaij committed Feb 26, 2024
1 parent 1f418c2 commit 18bfd9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private boolean isAllowedTopLevelNavigation(HttpServletRequest request)
String dest = request.getHeader(SEC_FETCH_DEST_HEADER);

boolean isSimpleTopLevelNavigation = MODE_NAVIGATE.equals(mode)
|| "GET".equals(request.getMethod());
&& "GET".equals(request.getMethod());
boolean isNotObjectOrEmbedRequest = !DEST_EMBED.equals(dest) && !DEST_OBJECT.equals(dest);

return isSimpleTopLevelNavigation && isNotObjectOrEmbedRequest;
Expand Down

0 comments on commit 18bfd9b

Please sign in to comment.