Nodejs WebRTC Video call, failure to connect to STUN / TURN, CORS is blocked

117 views
Skip to first unread message

gideons...@gmail.com

unread,
Dec 16, 2016, 1:33:20 AM12/16/16
to discuss-webrtc
Hi,

I have actually followed this WebRTC codelab (https://codelabs.developers.google.com/codelabs/webrtc-web/#7), but get stuck when needing to use STUN or TURN servers. I run the node on my Ubuntu server, tried ports 3434, 8080, etc.


Usually I get either error: “ICE failed”, or “Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://computeengineondemand.appspot.com/turn?username=41784574&key=4080218913. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).”


According to the latter one, I have enabled “A2enmod headers” and set this to apache.conf “Header always set Access-Control-Allow-Origin "*" “


The issue persists. My STUN server is “ 'url': 'stun:stun.l.google.com:19302' that should work most of the time, but I never have succeeded to pair devices which do not share the same network.


Any suggestions how to proceed from here

Reply all
Reply to author
Forward
0 new messages