peerjs-server icon indicating copy to clipboard operation
peerjs-server copied to clipboard

PeerJS Cloud Server CORS error

Open xeux opened this issue 5 years ago • 1 comments

Hello, following the get started documentation, if I'm understanding correctly I should be able to test PeerJS using the free cloud service.

I have an HTML file with the PeerJS script and when I execute: var peer = new Peer(); it's returning: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://0.peerjs.com/peerjs/id?ts=15944406639540.13822365001608738. (Reason: CORS request did not succeed).

The HTML file is hosted in a public domain without SSL.

xeux avatar Jul 11 '20 04:07 xeux

@xeux Did you find any solution for this? I'm facing the same error

siddharthmagadum16 avatar Sep 09 '21 17:09 siddharthmagadum16

Maybe there was a configuration error. We return Access-Control-Allow-Origin: * on every request.

jonasgloning avatar Feb 07 '23 12:02 jonasgloning