[SOLVED] Fastify & Socket.io CORS not accepted

Issue I’m tring to set up fastify-socket.io, fastify-cors, but I’m still getting CORS errors. I have fastify-cors and fastsity-socket.io registered Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:5000/socket.io/?EIO=4&transport=polling&t=NoUUJ6g. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Here

Continue reading