Comment

Comment by layer8

To add to that:

CORS is implemented by browsers based on standardized HTTP headers. It’s a web-standard browser-level mechanism.

CSRF protection is implemented server-side (plus parts of the client-side code) based on tokens and/or custom headers. It’s an application-specific mechanism that the browser is agnostic about.

parent layer8 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton