title: 'http://localhost:8080/js/app.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled
body: <p>Iam learning spring now. I am using spring boot and thymeleaf template. I did the spring security example provided in spring docs. now i wanted to include js file to implement the remember me functionality in my application so i added <strong>app.js</strong> file in <strong>src/main/resources/js</strong> folder.and my login.html is in src/main/resources/templates folder. and i included <pre> type="text/javascript" src="/js/app.js"</pre> in my html file. i also tried placing the js in same folder,  and in <strong>src/main/resources/static/js</strong>, and included <pre> type="text/javascript" src="./js/app.js"</pre> in my html. But for all cases the browser was throwing <strong>"Refused to execute script from '<a href="http://localhost:8080/js/app.js" rel="nofollow">http://localhost:8080/js/app.js</a>' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled."</strong> error. I googled for the same i did not get any correct answer. iam newbie to spring and thymeleaf.  kindly help me. thank you. also when i enter login details and press login the browser is displaying my app.js content</p>
  
  <p><strong>IT GOT SOLVED the error was appearing because of spring security issue. since I was not logged in, spring security was not allowing me to access js file. so i added that URL in spring security permitAll(). it got solved</strong> </p>