logoalt Hacker News

robertclaustoday at 3:38 AM2 repliesview on HN

I bet there's an awful lot of servers out there that will happily take CORS requests from any host because someone didn't understand why their second domain couldn't talk to the same API.


Replies

ivanjermakovtoday at 7:59 AM

Sometimes it's a good thing when I try to use someone else's backend in my web app. For example map tile server or route builder, which are session-less and have no authentication.

The idea that HTTP servers are restricted to requests from a single domain by default is strange, wonder if CORS world be better off opt-in rather than opt-out.

show 1 reply
ChadNauseamtoday at 4:40 AM

That describes pretty much every server I've ever written lol.