Spring security does not allow CSS or JS resources to be loaded

前端 未结 7 1463
闹比i
闹比i 2020-11-29 22:45

The resource is under src/main/resources/static/css or src/main/resources/static/js, I\'m using spring boot, and the class of security is:

@Configuration
@En         


        
7条回答
  •  野性不改
    2020-11-29 22:56

    I had the same problem and changing access to "permitAll" didn't help. I created a new http pattern where I set security to "none" and then I was able to download the css and js files without authentication.

    
    

提交回复
热议问题