登录发送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

你运行哪个案例?

0
3
Bluse666
回复
神思者
问题解决了老师,应该是某个地方引号忘加了。。。。。。。
2022-05-01
共3条回复

Java支付全家桶 企业级各类支付手段一站式解决方案

微信/支付宝/银联/混合支付,App/PC/H5/小程序,企业级通用支付

769 学习 · 204 问题

查看课程