2 ms·
AFAIK, checking the Referer header actually works for preventing CSRF because you can't modify it for the types of requests that work cross domain, i.e. loading
by tlrobinson 18y ago
AFAIK, checking the Referer header actually works for preventing CSRF because you can't modify it for the types of requests that work cross domain, i.e. loading <img>, <script>, etc tags, or posting forms.
- tptacek 18y agoYour assumption here isn't crazy, but it depends on the browser, and you shouldn't rely on it.