I'am developping a Vuejs project (vue 2.6.11) and I want to build an android app from it. For that, I'am using capacitor : "@capacitor/android": "^3.4.0" and "@capacitor/core": "^3.4.0".
The app is OK, I can run it with android studio but I've got an error in my login flow because of a web redirection : Following is the user journey :
- app open web content on https://localhost/home
- user click on Login button, that send a request to my distant server
- this request respond a 302 code and try to redirect to a local web url : https://localhost/login
- The app cannot load https://localhost/login and I've got a net: ERR_CONNECTION_REFUSED
I expect my app to load the webpage that my vue rooter render at this URL '/login'.
This is my capacitor.config.json :
{
"appId": "com.XXX",
"appName": "XXXX",
"bundledWebRuntime": false,
"server": {
"allowNavigation": [
"SERVERURL"
],
"androidScheme": "https"
},
"webDir": "dist"
}
There are plenty topics on the web about ERR_CONNECTION_REFUSED error with capacitor but nothing seems relevant to my prolem.
Thanking you,
Jonath
from On android app built with Capacitor, error ERR_CONNECTION_REFUSED after redirect on local url
No comments:
Post a Comment