DEV Community

Discussion on: Let’s Talk About Cross-Origin Resource Sharing (CORS)

Collapse
 
honatas profile image
Jonatas de Moraes Junior

As an architect I try to avoid handling CORS at all. In production its best to put everything under the same domain using proxies (like apache or nginx), and in development enviroments I also use proxies (like redbird), so there are no OPTIONS requests anywhere, thus making the application slightly faster.

Collapse
 
chuckchoiboi profile image
Chuck Choi

Oh that’s pretty cool! Thanks for your insight :)