Glimesh / broadcast-box

A broadcast, in a box.
MIT License
1.35k stars 70 forks source link

CORS Issue, Access-Control-Allow-Origin missing #44

Closed nab-os closed 10 months ago

nab-os commented 10 months ago

Hi,

I would like to use the WHEP endpoint from a client on a different page (a Firefox extension in this precise case).
But I get rejected because of CORS:

Reason: CORS header 'Access-Control-Allow-Origin' missing

I can see in the code that the header is supposed to get set:
https://github.com/Glimesh/broadcast-box/blob/e7b48c028eb2ee1b68306410f027996ddc72235e/main.go#L152

But that doesn't seem to get to the client, on the BB page or on my FF extension.
These are all the headers that I get:
image

nab-os commented 10 months ago

Could that be because of the reverse proxy that is in front of it ?

nab-os commented 10 months ago

That was it. Thank you, bye bye :wave: