title: How to allow all and any requests with Spring Security?
body: <p>I've just added Spring Security to my project. I've also added this configuration:</p>
  
  <pre><code>@Configuration
  @EnableWebSecurity
  public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
  
      @Override
      protected void configure(HttpSecurity http) throws Exception {
          http.authorizeRequests().anyRequest().permitAll();
      }
  
  }
  </code></pre>
  
  <p>but now not all of my endpoints work. In fact only a single endpoint works, for the rest I get <code>403 Forbidden</code>. What could be the problem? How can I allow <strong>any and all</strong> requests (effectively making security a pass-through).</p>