Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js Chrome策略指令(内容安全策略):拒绝加载脚本';https://www.paypal.com/sdk/js_Node.js_Google Chrome_Paypal_Header - Fatal编程技术网

Node.js Chrome策略指令(内容安全策略):拒绝加载脚本';https://www.paypal.com/sdk/js

Node.js Chrome策略指令(内容安全策略):拒绝加载脚本';https://www.paypal.com/sdk/js,node.js,google-chrome,paypal,header,Node.js,Google Chrome,Paypal,Header,我有一个使用Paypal的react应用程序 在index.html中,我有 <script src="https://www.paypal.com/sdk/js?client-id=MYCLIENTID&commit=true&disable-funding=credit,card"></script> 我也用过 https://www.paypal.com/sdk/js 甚至 https://www.paypal.com/sdk

我有一个使用Paypal的react应用程序

在index.html中,我有

<script src="https://www.paypal.com/sdk/js?client-id=MYCLIENTID&commit=true&disable-funding=credit,card"></script>
我也用过

https://www.paypal.com/sdk/js
甚至

https://www.paypal.com/sdk/js?client-id=MYCLIENTID&commit=true&disable-funding=credit,card
在页眉上,但仍然在Chrome上出现以下错误

Mysite.com/:1 Refused to load the script 'https://www.paypal.com/sdk/js?client-id=MYCLIENTID&commit=true&disable-funding=credit,card' because it violates the following Content Security Policy directive: "script-src 'self' my policies links...". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
有人知道我怎么能在谷歌浏览器的政策中超过贝宝吗? 谢谢

Mysite.com/:1 Refused to load the script 'https://www.paypal.com/sdk/js?client-id=MYCLIENTID&commit=true&disable-funding=credit,card' because it violates the following Content Security Policy directive: "script-src 'self' my policies links...". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.