Polish
This commit is contained in:
parent
2dcb441745
commit
4d6965a147
|
|
@ -230,10 +230,6 @@ public class SpringBootWebSecurityConfiguration {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void configure(HttpSecurity http) throws Exception {
|
protected void configure(HttpSecurity http) throws Exception {
|
||||||
http.authorizeRequests()
|
|
||||||
.requestMatchers(
|
|
||||||
(request) -> request.getHeader("Host").equals("whatever"))
|
|
||||||
.permitAll();
|
|
||||||
http.requestMatcher(new RequestMatcher() {
|
http.requestMatcher(new RequestMatcher() {
|
||||||
@Override
|
@Override
|
||||||
public boolean matches(HttpServletRequest request) {
|
public boolean matches(HttpServletRequest request) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue