Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning Ionic
  • Toc
  • feedback
Learning Ionic

Learning Ionic

By : Ravulavaru
4.4 (14)
close
Learning Ionic

Learning Ionic

4.4 (14)
By: Ravulavaru

Overview of this book

This book is intended for those who want to learn how to build hybrid mobile applications using Ionic. It is also ideal for people who want to explore theming for Ionic apps. Prior knowledge of AngularJS is essential to complete this book successfully.
Table of Contents (12 chapters)
close
11
Index

The Cordova whitelist plugin


Before we go ahead and start working with ngCordova, we are going to spend a moment on one of the key Cordova plugins – the whitelist plugin https://github.com/apache/cordova-plugin-whitelist.

From the Cordova documentation on the whitelist plugin:

"Domain whitelisting is a security model that controls access to external domains over which your application has no control. Cordova provides a configurable security policy to define which external sites may be accessed."

So, if you want to have more control over how your app should behave when dealing with content from other sources, you should be working with the whitelist plugin. As you may have noticed, this plugin is already added to our Ionic project.

If this plugin is not added to the Ionic/Cordova project, you can do so easily by running:

ionic plugin add cordova-plugin-whitelist

Once the plugin is added, you can update the config.xml file with the navigation whitelist – the links that your app is allowed to...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete