Here is my situation
-
In my web renderer, I send all api calls based on baseUrl: ‘/api’
-
In my electron main, I serve all my web static files based on ‘File://’ protocal
So the problem is
How do I proxy all 'file:///api/*'
api calls to a specific url, like proxy to 'http://myapiserver.com/api/*'