My app is using ag-sec and the @secure annotation.
When the user has not the role specified by @secure I got an exception, as expected https://gist.github.com/sebastienblanc/6134149
I assume it is because of this https://github.com/aerogear/aerogear-security/blob/master/src/main/java/org/jboss/aerogear/security/interceptor/SecurityInterceptor.java#L71 and perfect works as designed.
And without CORS, the server returns a nice 401 status to the client.
Same scenario I'm hitting a secure role without having the role needed (BTW the OPTIONS preflights are handled without any errors).