heroku node js simple cross-domain issue heroku node js simple cross-domain issue heroku heroku

heroku node js simple cross-domain issue


If you want to allow any domain to call your endpoint as per the comment in your code, you would use a wildcard instead of this.request.headers.origin

//The server allows any domain to call it with the XMLHttpRequestthis.response.setHeader("Access-Control-Allow-Origin", "*");