Following TURN server guide, cannot access TURN server due to CORS error

119 views
Skip to first unread message

Evan Wagstaff

unread,
Feb 5, 2018, 2:02:11 PM2/5/18
to TURN Server (Open-Source project)
Hi all,

I'm following a guide to set up a TURN server using the Community AMI for an application running on an EC2 instance: https://madurad.wordpress.com/2017/06/04/turn-server-installation-configuration-on-aws/

It works great and I'm able to hit the URL and see the words "TURN server", however when my application tries to use it when connecting WebRTC clients, I receive this error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://testsite.com:2013/turn?username=XXX&key=YYY. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

Is there a way to allow all connections in turnserver.conf? I'm not sure how to make it work from here. Thanks to anyone who can help.

-E

Matt Wenger

unread,
Apr 1, 2019, 5:54:16 PM4/1/19
to TURN Server (Open-Source project)
Hi Evan,

I'm struggling with the same issue you've described here.  Since it's been a while since you posted your question, I though I would ask - did you manage to solve this or find a solution that unblocked you?

Thanks,

Matt
Reply all
Reply to author
Forward
0 new messages