Modifications to main to enable CORS.