Here’s a quick gotcha for you. You set up a favicon in the root of your web app, as is the convention, and when you log in you are redirected to a picture of your favicon or you are asked to download it… Weird.
Odds on you’ve installed the Spring Security plugin and forgotten to give permission to the favicon file in the root and the result is that on login Spring Security redirects you to the first restricted item that was requested by the browser – the favicon.
The solution? Easy, set the favicon path to IS_AUTHENTICATED_ANONYMOUSLY in your SecurityConfig.groovy (or database):
controllerAnnotationStaticRules = [ ... '/favicon.ico' : ['IS_AUTHENTICATED_ANONYMOUSLY'], ... ]
Awesome man – had this problem and hardly had to research thanks to your post 🙂 THANKS!
Thanks Jeremy, I’m glad it helped you out!
Great deals of beneficial details and also terrific post
too. I have actually already signed up for your blog site and I am bookmarking it for future recommendation. Thanks for sharing!
Hey nice post. I hope it’s alright that I shared this on my
Facebook, if not, no worries just let me know and I’ll
remove it. Regardless keep up the good work.
I know this web page provides quality depending posts and other stuff,
is there any other site which gives such stuff in quality?
Good way of telling, and pleasant post to get data on the topic of
my presentation focus, which i am going to deliver in college.