# Programming WebRTC: How to configure CORS for the signaling server

**URL:** <https://forum.devtalk.com/t/programming-webrtc-how-to-configure-cors-for-the-signaling-server/143953>\
**Category:** PragProg Customers\
**Tags:** book-programming-webrtc, question\
**Created:** [16 February 2024 03:37 UTC](https://forum.devtalk.com/t/programming-webrtc-how-to-configure-cors-for-the-signaling-server/143953 "2024-02-16T03:37:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![karlstolley](https://forum.devtalk.com/user_avatar/forum.devtalk.com/karlstolley/32/4617_2.png) [@karlstolley](https://forum.devtalk.com/u/karlstolley)\
**Post date:** [23 February 2024 19:44 UTC](https://forum.devtalk.com/t/programming-webrtc-how-to-configure-cors-for-the-signaling-server/143953/2 "2024-02-23T19:44:51Z")

</div>

Hi Huynh!

There’s a couple of ways to handle this. One would be to worry about CORS only on the socket server. Have a look at [Socket.io](http://Socket.io) docs at [Handling CORS | Socket.IO](https://socket.io/docs/v4/handling-cors/)

Or, to continue your method of working directly with Express, have a close look at their documentation, including [Express cors middleware](https://expressjs.com/en/resources/middleware/cors.html)

If you’re not yet skilled with using a tool like `curl`, that will help you determine the headers coming back from both your app and signaling servers, and help you figure out where additional adjustments or configuration is needed.

---

_[View the full topic](https://forum.devtalk.com/t/programming-webrtc-how-to-configure-cors-for-the-signaling-server/143953)._
