Add CORS support

Support integrating with other front ends.