Open iteamaster89 opened 4 years ago
Hi. Could anybody help to know how to toggle between proxies from the app if it's possible? For example, to have checkbox on page which toggles proxies from prod to dev mode.
I don't think this is possible since it is set at runtime, what would be the use-case @iteamaster89 ?
I was just looking for a similar thing!
I am building an app to analyse another system, and need to use the other system's REST API to get configuration details. I want to be able to enter the remote system's URL and authentication details at run time and then use axios to pull the data, and I'm getting CORS errors, as expected.
It looks like axios/proxy won't let me do this? Everything is set at dev time?
Also looking to do this. I have a multi-tenant application built in laravel which I would like to proxy the api for (esp. using nuxt/auth-next package).
Each tenant has their own api subdomain (someuser.example.com/api), so the login form has 3 fields: domain, email, password. The target of the proxy needs to reflect what the user inputs in the domain field (obviously after sanitizing/validating).
@mindfullsilence did you found any solution?
The http-proxy-middleware
gives the option of re-target option.target for specific requests.
option.router