Refused to connect to [Any Url] because it violates the following Content Security Policy directive

前端 未结 1 680
野趣味
野趣味 2020-12-18 17:34

I am trying to access data within post method and its name is Login() but when URL is transfer to its location at that time Error is generated.

Error:

相关标签:
1条回答
  • 2020-12-18 17:44

    You need to install the whitelist plugin to allow XHR support in your Cordova app. You can't make external requests without it.

    Run: cordova plugin add https://github.com/apache/cordova-plugin-whitelist.git

    0 讨论(0)
提交回复
热议问题