简体   繁体   中英

Cordova whitelist not doing what its supposed to do?

I have $<access origin="*" /> in my xml file and

$<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. 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 中取出 *,这可能会导致您的误报。

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