Submit templates for repl.it/templates here.

← Back to all posts
Socket.io template
h
PixelNinja

Enjoy this basic template to help communicate server and client!

Voters
almostStatic
Loganjackson06
PixelNinja
Comments
hotnewtop
bangjii

giving me error
'Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://socketio-template.pixelninja.repl.co/socket.io/?EIO=4&transport=polling&t=Nmdvw1d. (Reason: CORS request did not succeed)'

i'm using simple html client with cdn socketio.

PixelNinja

@bangjii Hi, cross origin requests can be blocked under specific methods. I recommend finding a tutorial on how to disable cors on those requests as I do not know how. This tutorial is also getting updated soon.