CORS node js issue
问题 Having gone through multiple posts on stack I still couldn't find a right answer. Checked the documentation on CORS extension as well. I have the following server code up and running: var WebSocketServer = require("ws").Server var http = require("http") var express = require('express') var cors = require('cors') var app = express(); app.use(cors()); var port = process.env.PORT || 9000 var server = http.createServer(app) server.listen(port) var count = 0; var clients = {}; var rooms = {}; var