登录发送ajax请求控制台报错如下,用老师的源码也不行,网上找不到解决方案
来源:5-3 实现用户登陆的前端模块
Bluse666
2022-04-30
Refused to execute inline script because it violates the following Content Security Policy directive: “default-src ‘self’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-kPY6ovEPaw5y+RgWpejDaoJa2JT9tURMxvKvnhgv1XM=’), or a nonce (‘nonce-…’) is required to enable inline execution. Note also that ‘script-src’ was not explicitly set, so ‘default-src’ is used as a fallback.
写回答
1回答
-
神思者
2022-04-30
你运行哪个案例?
032022-05-01
相似问题