Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

socket.io cors

const io = require("socket.io")(httpServer, {  cors: {    origin: "http://localhost:8080",    methods: ["GET", "POST"]  }});httpServer.listen(3000);
Source by socket.io #
 
PREVIOUS NEXT
Tagged: #cors
ADD COMMENT
Topic
Name
1+2 =