ChriD / Raumserver

Raumserver - A HTTP Request Server to control the RF-Multiroom System
32 stars 11 forks source link

Cannot access 'updateId' header through CORS requests #46

Closed Bonilla closed 7 years ago

Bonilla commented 7 years ago

In version 1.0.1 Access-Control-Allow-Origin: * has been added to the Raumserver configuration making it possible to access the server's JSON objects through CORS. However, long polling through CORS is still not fully supported. Chrome for example returns:

Refused to get unsafe header 'updateId'

It seems that "updateId" has not been whitelisted in Access-Control-Expose-Headers. Could you please add the following to the server configuration:

Access-Control-Expose-Headers: updateId

Thanks and keep up the great work! :)

ChriD commented 7 years ago

Yes, I can do that.

ChriD commented 7 years ago

I have done that