-
Notifications
You must be signed in to change notification settings - Fork 12
axios issues #11
Copy link
Copy link
Open
Description
For some reasons I face axios / http request issues with this configuration and I don't understand why. Requests are just not going out.
This only happens on Android, not on ios and not in browser.
I understood that we have to set permissions like so in config.xml in the cordova folder
<edit-file mode="merge" parent="/manifest/uses-permission" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</edit-file>
what we can also do in nuxt is setting some "Content-Security-Policy" like so:
meta: [
{ charset: 'utf-8' },
{ "http-equiv": "Content-Security-Policy", content: "default-src * 'unsafe-inline' 'unsafe-eval'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src *; style-src * 'unsafe-inline';" },
all this does not help: There are no axios requests happening.
Maybe something recently changed in Android user permissions which does prevent this to work?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels