CORS config in node express and socket.io No 'Access-Control-Allow-Origin'
问题 I have my API hosted on Heroku and the Angular webAPP in other server. I have a problem when integrating socket.io to the API, my calls to the api do not work and I get error 503, caused by some bad configuration of the CORS? app.js (Node.js/Express hosted in heroku server) var express = require('express'); var app = express(); var port = process.env.PORT || 8080; //var port = 3000; // Notification Real Time // http://4dev.tech/2017/12/tutorial-creating-a-realtime-notification-system-in