jquery - Spring Security ajax login interpreted as regular login request (not AJAX) -


i'm trying make login form grails / spring security core. request apparently correct instead of behaving ajax login request, it's handled regular login request (ie redirected default login url instead of ajaxsuccess). makes clearer:

enter image description here

my request should redirected authajax , ajaxsuccess because i'm using correct password, actually, if refresh web site, i'm logged in, it's not redirecting me correct action on login controller. code authajax action:

def authajax = {     session.spring_security_saved_request_key = null     response.setheader 'location', springsecurityutils.securityconfig.auth.ajaxloginformurl     response.senderror httpservletresponse.sc_unauthorized } 

i fixed problem adding following line action render view contains ajax form: session.spring_security_saved_request_key = null

you can find more details on why solves problem on following link: spring security core authajax, how ignore referer


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -