Refused to execute script from 'http://127.0.0.1:8004/login' because its MIME ty

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-29 15:24   35   0

Refused to execute script from 'http://127.0.0.1:8004/login' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Refused to execute script …”,为什么会被拒绝执行呢?想到可能是权限的控制问题,亦即是 Spring Security 的静态资源访问配置问题。经核查,的确是这样的问题。

添加静态资源不拦截:

1233356-2c6c27ae90697d62.png
image.png
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP