Added CORS support to allow frontend access.