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 …”徙缴,為什么會(huì)被拒絕執(zhí)行呢塘辅?想到可能是權(quán)限的控制問(wèn)題宰掉,亦即是 Spring Security 的靜態(tài)資源訪問(wèn)配置問(wèn)題。經(jīng)核查卖陵,的確是這樣的問(wèn)題。
添加靜態(tài)資源不攔截:
image.png