Resolved by using https://github.com/apache/cordova-plugin-whitelist plugin and adding <meta http-equiv="Content-Security-Policy" ...> in <head> of index.html file.
For more info, read https://github.com/apache/cordova-plugin-whitelist#content-security-policy.