Email or username:

Password:

Forgot your password?
Simon Willison

An interesting thing about CORS is how poorly understood it is and how difficult it is to find a really clear explanation

I’m not sure I could write a clear explanation myself

The best I’ve seen is jakearchibald.com/2021/cors/

7 comments
Matt Burke

@simon CORS and OAuth are the two topics I just can’t keep in my head. Every new project I struggle to set these up correctly, bang my head against it for multiple hours and finally go read up from first principles. Once it’s working I forget all about it until the next project

Daniel Lindsley

@simon I really like javascript.info/fetch-crossori 's explanation. It's long, but comprehensive (IMO).

Daniel Lindsley

@simon And while I'm at it, *cough* toastdriven.com/blog/2024/aug/ *cough*

…Not that I'm any judge if it's any good or not.

yogsototh

@simon what I kept working with CORS is that it is a security measure that is very easy to circumvent. See my short post about it her.esy.fun/posts/0025-a-quick

Luis Lavena

@simon indeed is cryptic. The best reference I found was this one: jub0bs.com/posts/2023-02-08-fe

But the one you shared looks nice!

happyborg

@simon I hope CORS is half as frustrating for those trying to break web security as those of us just trying to do legitimate stuff 🤦‍♂️

Go Up