You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experimenting with creating a way to control profiles remotely (i.e. from my phone), and encountered a missing CORS header Access-Control-Allow-Origin error when making requests from my local web server. I'm not too familiar with how CORS or NAT should be set up to make it possible, but when I added this it worked:
As far as I can tell, this is basically the same as adding Access-Control-Allow-Origin: * to the response headers. Could there be a way expose this via settings, possibly with custom values?
The text was updated successfully, but these errors were encountered:
Hi, yeah I'm not against making CORS a setting, I'll have to experiment a little bit with this to make sure I know what the implications of this change are.
The main concern is accidentally exposing things publically, either directly or indirectly
I'm experimenting with creating a way to control profiles remotely (i.e. from my phone), and encountered a missing CORS header
Access-Control-Allow-Origin
error when making requests from my local web server. I'm not too familiar with how CORS or NAT should be set up to make it possible, but when I added this it worked:Reference to code:
Artemis/src/Artemis.Core/Services/WebServer/WebServerService.cs
Lines 125 to 127 in c901bce
As far as I can tell, this is basically the same as adding
Access-Control-Allow-Origin: *
to the response headers. Could there be a way expose this via settings, possibly with custom values?The text was updated successfully, but these errors were encountered: