bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
12.53k stars 1.55k forks source link

Unable to get ice servers from API due to CORS #2480

Closed sainak closed 1 year ago

sainak commented 1 year ago

Which version are you using?

v1.1.1

Which operating system are you using?

Describe the issue

Unable to get ice servers from API due to CORS, the configuration is parsed from the link header of OPTIONS response, but browsers are not able to read the link header as the Access-Control-Expose-Headers is not set

Describe how to replicate the issue

  1. start the server
  2. make a cors request to the server
    fetch("https://example.com/mystream/whep", { method: "OPTIONS" }).then((res) => console.log(res.headers))
  3. no headers printed

Did you attach the server logs?

no

Did you attach a network dump?

no

github-actions[bot] commented 7 months ago

This issue is being locked automatically because it has been closed for more than 6 months. Please open a new issue in case you encounter a similar problem.