简体   繁体   English

Cordova 白名单没有做它应该做的事情?

[英]Cordova whitelist not doing what its supposed to do?

I have $<access origin="*" /> in my xml file and我的 xml 文件中有$<access origin="*" />并且

$<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' *http://for3s.azurewebsites.net http://localhost:1337 http://ajax.aspnetcdn.com">

in my index.html file.在我的index.html文件中。 I have tried other examples of this meta tag, but it's always the same error message:我已经尝试过这个元标记的其他例子,但它总是相同的错误消息:

"Refused to load the script ' http://for3s.azurewebsites.net/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%5D&callback=jQuery16405339114761445671_1448321915826&_=1448321923021 ' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' 'unsafe-eval' * http://for3s.azurewebsites.net http://localhost:1337 http://ajax.aspnetcdn.com ".` “拒绝加载脚本 ' http://for3s.azurewebsites.net/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%5D&callback=jQuery16405339114761445671_1448321915826&_=1944382违反了安全性脚本 1944832 指令后的内容: self' 'unsafe-inline' 'unsafe-eval' * http://for3s.azurewebsites.net http://localhost:1337 http://ajax.aspnetcdn.com ".`

从 * http://for3s.azurewebsites.net 中取出 *,这可能会导致您的误报。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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