Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sdevlin
· 14y ago · 0 comments
The referer header can easily be forged. The whole point of a CSRF attack is to turn a user's credentials against him.
Comments
[–]
eurleif
14y ago
How do you forge the referer header as a third-party site?
[–]
sdevlin
OP
14y ago
Ha, I'm wrong. I thought you could set the referer with setRequestHeader on an XHR. Mea maxima culpa.