Sc_redir in grid from an ajax event produces error Forbidden (403)

I use sc_redir to a website in a grid in an onclick ajax event
This produces error Forbidden (403) CSRF-verification failed. request terminated. This error is produced after it requests a password on the website.
When I execute it directly from a menu-item with scriptcase it works without any error.
I changed the security settings but they do not seem to impact it.

Ok solved for now if the sc_redir is used with argument Target _blank which opens a new window it works. with Target parent it wont.