Configuring CORS with Grails 3 and Spring Security REST
<p>I'm trying to figure out how to plug an Angular 2 frontend (running on localhost:4200) into a Grails 3 backend (running on localhost:8080) so I need to enable CORS support in the grails app.</p>

<p>I found this Github project (<a href="https://github.com/appcela/grails3-cors-interceptor-spring-security-rest-sample-app" rel="noreferrer">https://github.com/appcela/grails3-cors-interceptor-spring-security-rest-sample-app</a>) that shows how to enable CORS using the grails3-cors-interceptor plugin. I'm running this very application as a test backend and I'm putting a breakpoint in <code>CorsService.processPreflight()</code> to check when it's called. And when I do a GET on <code>/api/books</code>, the browser sends an OPTIONS call first that goes through the breakpoint, but the following GET doesn't seem to go there and I can't figure out why. Any idea?</p>