How to enable CORS in Aurelia?


#1

I’m using Aurelia. How to enable CORS in Aurelia Framework?.

This error in being shown in Firefox:

Cabecera CORS ‘Access-Control-Allow-Origin’ no presente

Thanks.


#2

To enable CORs, you should config server to have Access-Control-Allow-Origin to * for development and specific domain for production