I want to use Ionic's Proxies feature in an Ionic Vuejs project.
I have seen questions and answers for proxy problems with Ionic + Angular, and for Vue + Webpack, but couldn't find a solution for my Ionic + Vue problem.
For now I am just working in a browser (i.e. and not building for native yet).
I followed the instructions, and my ionic.config.json now looks like this:
{
"name": "myapp",
"integrations": {
"capacitor": {}
},
"type": "vue",
"proxies": [
{
"path": "/webhp",
"proxyUrl": "https://www.google.com"
}
]
}
I run ionic serve --no-open and browse to http://localhost:8100/webhp.
The request is not proxied, my app is loaded, and I get a router error: [Vue Router warn]: No match found for location with path "/goto".
When I try to access that URL using an AJAX request in my code:
await axios.post("/webhp");
I get an error:
I am using Ionic CLI 6.12.2 and Ionic Framework @ionic/vue 5.5.2.
What am I doing wrong?

I mentioned in a comment that I implemented a workaround using nginx, and was asked for details, so I am posting it as an answer.
In my setup, I have nginx listening on port 8888 and the Webpack Dev Server listening on port 8100.
I access the website via port 8888, e.g.
http://local.mydomain.com:8888/.My nginx configuration looks like this:
Requests for paths that begin with
/x/go toindex.php.All other requests get proxied to Webpack on port 8100.
The rest of the configuration is not actually related to this proxy thing; I just included it to give a complete config.