New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cordovax-edit-ats

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordovax-edit-ats

This module removes/creates AppTransportSecurity setting in plist file in cordova ios project.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Introduction

This module removes/creates AppTransportSecurity setting in plist file in cordova ios project.

Install

$ npm install cordovax-edit-ats --save-dev

on the cordova application directory.

Commandline Usage

Remove ATS setting

$ npx cordovax-edit-ats remove

Create ATS setting

$ npx cordovax-edit-ats create

the following ATS is created

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
  <true/>
</dict>

Create ATS with NSAllowsArbitraryLoads true

$ npx xordovax-edit-ats create true

Create ATS with NSAllowsArbitraryLoads false

$ npx xordovax-edit-ats create false

With Cordova hook.

Example:

config.xml

<hook src="scripts/editPlist.js" type="after_platform_add" />

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);
  }
};

FAQs

Package last updated on 13 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc