Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
chuckadams
11 months ago
|
parent
|
context
|
favorite
| on:
Why do we have both CSRF protection and CORS?
A nonce, kept in an extra query parameter named "state".
https://stackoverflow.com/a/77029859
has some of the gory details (myself, I just hash the session's CSRF token to generate a state token)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: