0
votes

I am working on basic spring boot application which has Spring security enabled.
When I try to use CSS in my thymeleaf HTML, I get the below error:

Refused to apply style from 'http://localhost:9999/login' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

1
I'm not familiar with Spring Boot, but this answer explains one of the more common sources of this problem. For other people to be able to help you, you'll need to provide more details about your specific setup. Please see How do I ask a good question?.Etheryte
Thanks for quick response . i appreciate it .vanamala sravankumar
My issue resolved from below link stackoverflow.com/questions/41910004/…vanamala sravankumar

1 Answers

1
votes

Add CSS file to Spring Boot + Spring Security Thymeleaf file This will resolve the issue , when working with spring security we need to permit folder access as mentioned here.