tom-james-watson / p2p.chat

p2p video conferencing powered by WebRTC.
MIT License
686 stars 134 forks source link

Access blocked via CORS policy when joining room #16

Closed paddatrapper closed 2 years ago

paddatrapper commented 4 years ago

I am unable to connect to p2p.chat using Chromium or Firefox under Debian due to the following errors.

Steps to reproduce:

  1. Join room using link shared by someone else
  2. Grant access to mic and camera
  3. Join room
  4. The connecting... message appears and remains. It does not advance further. After a while (30s or so) the errors appear in the browser console
Access to resource at 'https://signalhub.p2p.chat/v1/yajw51Q47o8/test24/all' from origin 'https://p2p.chat' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
signalhub.p2p.chat/v1/yajw51Q47o8/test24/all:1 GET https://signalhub.p2p.chat/v1/yajw51Q47o8/test24/all net::ERR_FAILED

test24:1 Access to resource at 'https://signalhub.p2p.chat/v1/yajw51Q47o8/test24/19b4c243-7428-4f67-a10b-5efed9098995' from origin 'https://p2p.chat' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
signalhub.p2p.chat/v1/yajw51Q47o8/test24/19b4c243-7428-4f67-a10b-5efed9098995:1 GET https://signalhub.p2p.chat/v1/yajw51Q47o8/test24/19b4c243-7428-4f67-a10b-5efed9098995 net::ERR_FAILED

test24:1 Access to resource at 'https://signalhub.p2p.chat/v1/yajw51Q47o8/test24/all' from origin 'https://p2p.chat' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
signalhub.p2p.chat/v1/yajw51Q47o8/test24/all:1 GET https://signalhub.p2p.chat/v1/yajw51Q47o8/test24/all net::ERR_FAILED

test24:1 Access to XMLHttpRequest at 'https://signalhub.p2p.chat/v1/yajw51Q47o8/test24/yajw51Q47o8/test24' from origin 'https://p2p.chat' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
app.js:40 POST https://signalhub.p2p.chat/v1/yajw51Q47o8/test24/yajw51Q47o8/test24 net::ERR_FAILED