title: StormPath Spring Boot Integration - getting Invalid CORS request error
body: <p>Trying to integrate the StormPath with Spring Boot receiving multiple errors. Following here is the application setup. </p>
  
  <p>Using stormpath-default-spring-boot-starter version 1.2.1.  </p>
  
  <pre><code>1) application.properties contains only stormpath id, secret and href as follows,
  
  stormpath.client.apiKey.id = &lt;id&gt;
  stormpath.client.apiKey.secret = &lt;secret&gt;
  stormpath.application.href = &lt;href&gt;
  
  2) SpringSecurityWebAppConfig.Java (Override spring security)
  
  @Configuration
  public class SpringSecurityWebAppConfig extends WebSecurityConfigurerAdapter {
      @Override
      protected void configure(HttpSecurity http) throws Exception {
          http.apply(stormpath());
      }
  }
  
  When application is run,
  ------------------------
  1) http://localhost:8080/register renders register screen. 
  
  2) http://localhost:8080/login (GET) throws error "Unable to invoke StormPath controller: Resolved account store cannot be an Organization".
  
  3) http://localhost:8080/login (POST)  (from PostMan) throws error "Invalid CORS request".
  </code></pre>
  
  <p>Appreciate the help.</p>