Hi Franky,

Yes, Rest and cors are not best friends. There are some ways to get around 
the prefight.

1. server everything from the same (sub)domain. The exact same one. and 
yes, www.domain.com is another subdomain as app.domain.com. They are in the 
same domain indeed, but are indeed different subdomains, So cors will kick 
in, nothing you can do about that.
2. serve everything via winsockets. no preflights anymore.
3. switch over to http2. still preflights but those don't have the same 
performance hit.  This is also stupid, because the connection stays up, so 
the prefight don't serve any purpose anymore.... this might get addressed 
sooner then the normal preflight situation tough.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to