title: Spring WebSecurityConfigurerAdapter allow POST?
body: <p>I would like to enable POST request for a certain "/interface" URL on my site. I have successfully loaded the class via <code>Class&lt;?&gt;[] getRootConfigClasses()</code>, the specified CSP header for the <code>HttpSecurity http</code> exist.</p>
  
  <p>Whenever I make a request to <code>/interface</code>, I get <code>HTTP 403</code>. </p>
  
  <pre><code>@Configuration
  @EnableWebSecurity
  public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter
  {
  
      @Override
      protected void configure(HttpSecurity http) throws Exception
      {
          http
              .authorizeRequests().antMatchers(HttpMethod.POST, "/interface").permitAll().and()
              .headers()
              .contentTypeOptions().and()
              .cacheControl().and()
              .httpStrictTransportSecurity().and()
              .frameOptions().and()
              .contentSecurityPolicy("the csp header. it is present on every response.");
      }
  }
  </code></pre>