App Transport Security blocks ajax calls


Hi, I’ve written a simple vue app that performs an ajax call to

If I start the app with
npm run watch:ios
and perform the ajax call the console output is

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file.

I’ve changed the Info.plist under

<true />

but this does not any effect. If I build the app with xcode an run the app, the xcode console shows the response of the ajax request correctly.

Any help?

Thanks, Markus


Did you try a clean build?


Today I’ve created a new demo project with:

$ npm install -g @vue/cli @vue/cli-init
$ vue init nativescript-vue/vue-cli-template <project-name>
$ cd <project-name>
$ npm install

Visit the app with

npm run watch:ios

The app is running. Now I added


to the file /template/app/App_Resources/iOS/Info.plist

When I perform

npm run clean

and then

npm run watch:ios

the app performs the http call. That solves the problem for me.
Thank you