编程笔记

Refused to execute script from &

2018-06-02  本文已影响660人  光剑书架上的书

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 的静态资源访问配置问题。经核查,的确是这样的问题。

添加静态资源不拦截:

image.png
上一篇 下一篇

猜你喜欢

热点阅读