相关疑难解决方法(0)

内容安全策略错误,但元标记包含URL

为什么我会收到这样的错误?

Refused to load the script 'http://maps.googleapis.com/maps/api/js?v=3&sensor=false'


because it violates the following Content Security Policy directive: 
"script-src 'self' *.googleapis.com 'unsafe-inline' 'unsafe-eval'".
Run Code Online (Sandbox Code Playgroud)

我的中继标记:

<meta http-equiv="Content-Security-Policy" 
content="default-src *; style-src 'self' *.googleapis.com 'unsafe-inline'; script-src 'self' *.googleapis.com 'unsafe-inline' 'unsafe-eval'">
Run Code Online (Sandbox Code Playgroud)

android content-security-policy ionic-framework

0
推荐指数
1
解决办法
1198
查看次数