Hello everyone I’m trying to make my vue3 web project work as an app using capacitor. Currently, when I run the app, everything works fine. However, I have a problem when I use the vue3-google-login library to login to google. For the web, when I make the initial client request, I get a response code of 200, but when I make the when I run it in the emulator, I get a 403 response code and a CORS error. Any idea why? At first, I thought it was a referer problem in the request header, so I changed the hostname to the actual running domain as shown below, but… It works fine on the web, but not in the app.
Additionally, I’m using axios
{
...
"webDir": "dist",
"bundledWebRuntime": false,
"plugins": {
"SplashScreen": {
"launchShowDuration": 3000,
"launchAutoHide": true,
"backgroundColor": "#ffffff",
"androidSplashResourceName": "splash",
"androidScaleType": "CENTER_CROP",
"showSpinner": false,
"splashFullScreen": true,
"splashImmersive": true
},
"CapacitorHttp": {
"enabled": true
}
},
"server": {
"hostname": "example.com",
"androidScheme": "https"
}
}