Reputation: 268
I have a Spring Boot application with CSRF enabled hosted on AWS. And I have followed this tutorial enable CSRF for SpringBoot & AngularJS
I have disabled CSRF for
"/healthcheck.js", "/health", "/info", "/actuator", "/beans", "/env", "/configprops", "/metrics", "/dump", "/autoconfig", "/mappings", "/trace"
actuator URLs along with the context path and the static files.
However, I still get 401 for /[contextpath]/healthcheck.js. Not sure if I am missing anything else.
Any help is appreciated.
Upvotes: 0
Views: 577
Reputation: 268
I made it to work after adding the url patterns to spring security permitAll.
http.authorizeRequests().antMatchers(patterns).permitAll()...
Upvotes: 0