title: Expose an unsecure Restful endpoint in a Springboot Secured application
body: <p>I want to expose an unsecure Restful endpoint in a Springboot secured application. GET requests to the endpoint /api/notify work, but POST requests result in a 403. How do I configure so that remote clients can POST to /api/notify from there server?</p>
  
  <p>My extended WebSecurityConfigurerAdapter looks like this:</p>
  
  <pre><code>protected void configure(HttpSecurity http) throws Exception {
      http
          .authorizeRequests()
          .antMatchers("/").permitAll()
          .antMatchers("/signup").permitAll()
          .antMatchers("/reset").permitAll()
          .antMatchers("/api/notify").permitAll()
          .anyRequest().authenticated();
      http
          .formLogin()
              .defaultSuccessUrl("/home")
          .failureUrl("/login?error")
          .loginPage("/login")
          .permitAll()
          .and()
          .logout()
          .permitAll();
  }
  </code></pre>