Hacker News new | ask | show | jobs
by josephg 2396 days ago
The OPTIONS response should be cached by the browser if the headers are being set correctly in the response. If you want to avoid the latency cost you can proxy the POST request via your own backend, though you can't send authentication credentials from the user's browser to the 3rd party site that way.

Using text/plain only exists as a backwards compatibility thing. I wouldn't be surprised if that stops working at some point, since it breaks the security model.

1 comments

Won't proxying the request just introduce its own latency? Either way you get two round trips. Is it measurably better?