Merge branch 'feateure/SUPPORT-8653_fixes' into develop
# Conflicts: # backend/pom.xml # distribution/pom.xml # frontend/pom.xml # pom.xml # resources/pom.xml
This commit is contained in:
commit
1aae56a424
134 changed files with 2083 additions and 5323 deletions
|
|
@ -59,6 +59,8 @@ public class SecurityConfig {
|
|||
|
||||
protected void httpConfigure(HttpSecurity httpSecurity) throws Exception {
|
||||
CookieCsrfTokenRepository tokenRepository = CookieCsrfTokenRepository.withHttpOnlyFalse();
|
||||
tokenRepository.setCookieName(TokenConstants.CSRF_TOKEN_NAME);
|
||||
tokenRepository.setHeaderName(TokenConstants.CSRF_HEADER_NAME);
|
||||
tokenRepository.setCookiePath("/");
|
||||
XorCsrfTokenRequestAttributeHandler delegate = new XorCsrfTokenRequestAttributeHandler();
|
||||
delegate.setCsrfRequestAttributeName(null);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
package ru.micord.ervu.security;
|
||||
|
||||
public final class TokenConstants {
|
||||
public static String CSRF_TOKEN_NAME = "XSRF-TOKEN-LKRP-FL";
|
||||
public static String CSRF_HEADER_NAME = "X-XSRF-TOKEN-LKRP-FL";
|
||||
|
||||
private TokenConstants() {
|
||||
//must be empty
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue