kevdoran commented on a change in pull request #5262:
URL: https://github.com/apache/nifi/pull/5262#discussion_r691268425
##########
File path:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/CsrfCookieRequestMatcher.java
##########
@@ -35,6 +33,6 @@
*/
@Override
public boolean matches(final HttpServletRequest httpServletRequest) {
- return WebUtils.getCookie(httpServletRequest,
DEFAULT_CSRF_COOKIE_NAME) != null;
+ return WebUtils.getCookie(httpServletRequest,
SecurityCookieName.AUTHORIZATION_BEARER.getName()) != null;
Review comment:
Just for my own understanding - is the jwt token value also used as the
CSRF prevention token value?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]