使用SpringBoot框架和SpringSecurity框架整合出現because its MIME type ('text/html') is not executable

前端頁面出現: Refused to execute script from ‘http://localhost:8080/login’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled. 解決方法: 將靜態資源的路徑寫在自定義的安全策略中 所以要找到對自定
相關文章
相關標籤/搜索