Skip to content

Commit 84e73f1

Browse files
Merge pull request #32 from epam/main-1.2
New Release
2 parents 6070518 + 0eda58f commit 84e73f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/ws-server/src/main/java/com/epam/deltix/tbwg/webapp/security/ResourceServerConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer;
3333
import org.springframework.security.config.annotation.web.configurers.CsrfConfigurer;
3434
import org.springframework.security.config.annotation.web.configurers.HeadersConfigurer;
35+
import org.springframework.security.config.annotation.web.configurers.RequestCacheConfigurer;
3536
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
3637
import org.springframework.security.crypto.password.PasswordEncoder;
3738
import org.springframework.security.oauth2.core.DelegatingOAuth2TokenValidator;
@@ -77,6 +78,8 @@ public ResourceServerConfig(OAuth2ResourceServerProperties config,
7778
@Order(2)
7879
public SecurityFilterChain filterChain(final HttpSecurity http) throws Exception {
7980
http
81+
// Workaround for strict URI parsing when '%' appears in the request path
82+
.requestCache(RequestCacheConfigurer::disable)
8083
//.cors().and()
8184
.authorizeHttpRequests(auth ->
8285
auth

0 commit comments

Comments
 (0)