News for hackers. Stuff that matters.
Re:Claude's API now supports CORS requests, enabling client-... by easton on Friday August 23, 2024 @09:25AM (#41328819)
Because in the 90s/early 2000s someone thought it was a good idea to send cookies for the given site along with all requests (probably a good move, since it would stink to have to tell the browser somehow to explicitly send a cookie for every request, even ones initiated outside of JS).

You could say that sites instead must prescribe a "send-cookies-when-requests-are-from-this-site" header, but that's kind of the same thing as CORS.

Re:Claude's API now supports CORS requests, enabling client-... by joquarky on Friday August 23, 2024 @07:01PM (#41333831)
We used to rewrite the session ID into all link href and form action URLs for browsers that didn't enable/support cookies. If any link or form did not contain the SID, the app broke.

It was tedious.