获取错误:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'unsafe-inline' 'nonce-
...
Note that 'unsafe-inline' is ignored if either a hash or nonce value is present in the source list.
在一台服务器上,这有效,在另一台服务器上,无效。这两个服务器似乎具有100%等效的.htaccess文件。提供的随机数对两种情况都是正确的。但是,我无法确定是什么原因导致了这种不同的行为。如果我确定所提供的随机数是正确的,还有什么其他原因可能导致此问题?是否有允许不安全内联的Apache设置?不允许执行脚本的服务器最近已升级到ubuntu 16。