'What to do with CORS when connecting from application

I have seen that using cors * is a bad idea in general. But given the case where I will be connecting to the server from an Electron App from anywhere it could be.

That's where I don't know what the way to go is, other than just having cors *



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source