wojtkowiak / meteor-desktop

Build a Meteor's desktop client with hot code push.
MIT License
448 stars 81 forks source link

CORS problem with real domain in installer #292

Open diavrank opened 3 years ago

diavrank commented 3 years ago

Hi everyone, could you help me with this?

I generated an installer for Mac with:

meteor-desktop -- build-installer https://antware.com.mx

And when I run the desktop app, I got an error about CORS:

Access to XMLHttpRequest at 'https://antware.com.mx/sockjs/info?cb=7r257nqu0b' from origin 'meteor://desktop' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'meteor://desktop, antware.com.mx', but only one is allowed.
Screen Shot 2021-01-15 at 20 08 37

I wonder if I have to do a CORS configuration in the server side adding desktop domain?