This module removes/creates AppTransportSecurity setting in plist file in cordova ios project.
npm install cordovax-edit-atsThis module removes/creates AppTransportSecurity setting in plist file in cordova ios project.
```
$ npm install cordovax-edit-ats --save-dev
on the cordova application directory.
Remove ATS setting
``
$ npx cordovax-edit-ats remove
Create ATS setting
``
$ npx cordovax-edit-ats create
the following ATS is created
``
Create ATS with NSAllowsArbitraryLoads true
``
$ npx xordovax-edit-ats create true
Create ATS with NSAllowsArbitraryLoads false
``
$ npx xordovax-edit-ats create false
Example:
config.xml
``
scripts/editPlist.js
`
var editATS = require('cordovax-edit-ats');
module.exports = function(context) {
if (context.opts.cordova.platforms.includes('ios')) {
editATS('create_false', context.opts.projectRoot);
}
};
``