[Component/Security] In case of authentication failure "Referer" header is lost