News for hackers. Stuff that matters.
Re:Developers don't understand CORS (2019) by Sophira on Sunday June 21, 2026 @08:42AM (#48618444)
Regarding the first part, it's easier than you might think to have a false sense of security.

I've seen a web application that did, in fact, check the Content-Type header to make sure that "application/json" was there - but it didn't check that the header value started with that. That meant that setting the header to "multipart/form-data; boundary=application/json" was enough to bypass a CORS preflight!

There are no comments on this comment yet.