Posts by Victor Chagas Seibert • 21 points
1 post
-
2
votes2
answers56
viewsA: Access-Control-Allow-Origin error with Nodejs and Reactjs application
Oops, try adding this to your socket: export const io = socketio(server, { cors: { origin: "*", methods: ["GET", "POST"], allowedHeaders: ["my-custom-header"], credentials: true } }) If not, I would…