简体   繁体   中英

Ionic2/Cordova - No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin

I am facing the below error in my Ionic2 app when running in an Android device/emulator:

No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.

The error blocks all connexion to the backend and throws 403 error.

Any guesses on how I can solve it?

将此行添加到您的html文件中:

<meta http-equiv="Content-Security-Policy" content="*"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM