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

image.png