Skip to content

axios issues #11

@donmb1

Description

@donmb1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions