frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Developers don't understand CORS (2019)

https://fosterelli.co/developers-dont-understand-cors
11•toilet•1h ago

Comments

piyh•20m ago
The only thing I remember about CORS is that it takes way longer than expected to debug, by design the error messages sent to the browser are intentionally gutted, and CORS error scenarios are hard to tell from other failure modes atfirst glance.
deathanatos•12m ago
> by design the error messages sent to the browser are intentionally gutted

A CORS error is not "an error message sent to the browser", it is an error generated by the browser, because the browser has decided it cannot permit the request. (Though certainly a server can not understand a CORS request as such, and returned a weird response, which would then end up getting translated to a CORS failure.)

deathanatos•10m ago
Generally when I'm debugging these, I need/want to know what was the preflight (if applicable), and was the preflight what was expected? When I help others debug these, generally I find there is little expectation of what the preflight "should" be, and instead just a bunch of stochastic attempts to adjust the server's response headers to get the browser to capitulate — regardless of whether that makes any sense at all.

I would also say I think Firefox's network inspector is better in this area. (But I'm often having to ask others to "no, don't send the failing request, send the CORS preflight", we need to understand what happened with it.)

> Anecdotally, lots of developers I’ve talked with don’t understand well how CORS works.

Yeah, most FE devs I've worked with seem to not understand CORS.

> Is the CORS API too complex and confusing

I think it can be hard if you don't understand why the exceptions to preflights are what they are, but the moment you internalize "because the browser can already emit that request in other cases" then it becomes obvious what categories are what & why.

Show HN: Agent-historian – let your AI agent search its own past sessions

https://github.com/adlternative/agent-historian
1•adltereturn•2m ago•0 comments

Static universe with VSL. Redshift without expansion (open access)

https://pixeltheory.co.uk
1•jimfoweraker•3m ago•0 comments

Moving Machine Learning into the Analog Domain

https://sangota.substack.com/p/one-good-analog-transistor-is-worth
2•random__duck•10m ago•0 comments

I Moved from Arch to Boring Debian Testing

https://www.whileforloop.com/blog/2026/06/20/why-i-moved-from-arch-to-debian-testing/
1•wook__•10m ago•0 comments

Corpulence Index

https://en.wikipedia.org/wiki/Corpulence_index
1•aragonite•11m ago•0 comments

The largest open database of local laws in the US

https://arxiv.org/abs/2606.19334
1•rao-v•12m ago•1 comments

Some of Android's Most Interesting Games Aren't Just on the Play Store

https://gardinerbryant.com/some-of-androids-most-interesting-games/
1•thunderbong•12m ago•0 comments

I Hate Personal CRMs. I Might Need One

https://shikharsachdev.substack.com/p/i-hate-personal-crms-i-might-need
1•shsachdev•14m ago•0 comments

X402 stock APIs for agents, pay per API call

https://x402stock.xyz/
1•parth_nandaniya•20m ago•0 comments

Bevy 0.19

https://bevy.org/news/bevy-0-19/
3•embedding-shape•27m ago•0 comments

Realtime Raytracing in Bevy 0.19 (Solari)

https://jms55.github.io/posts/2026-04-12-solari-bevy-0-19/
2•embedding-shape•28m ago•0 comments

Third Places (NYC)

https://thirdplaces.nyc
1•xhrpost•28m ago•1 comments

Plotting AI model release cadence: two labs are accelerating, three aren't

https://swiftalerts.trade/the-cadence-trade-hn
1•abipal15•44m ago•0 comments

With Every Breath You Take, Thank the Ocean

https://ocean.si.edu/ocean-life/plankton/every-breath-you-take-thank-ocean
3•thunderbong•50m ago•0 comments

The snake-wrangling 84-year-old who lives on a remote barrier island

https://www.bbc.com/travel/article/20260612-the-snake-rearing-84-year-old-who-lives-on-a-remote-b...
1•1659447091•52m ago•0 comments

Show HN: Lean bulk, cut, body recomp. Calculate maintenance calories

https://macrocodex.app/
11•faangguyindia•1h ago•2 comments

The only cauldron ever found in a river in the British Isles

https://www.bbc.co.uk/news/articles/clyrn5e2k9no
1•nickt•1h ago•0 comments

Launch: MyIntelBrief – Smarter Competitor Monitoring

https://myintelbrief.com/
2•myintelbrief•1h ago•0 comments

Show HN: Cc-fleet – run other LLMs as Claude Code workers, your sub drives

https://github.com/ethanhq/cc-fleet
1•ethanhq•1h ago•0 comments

Show HN: Adbqr – ADB pair via QR code from the CLI

https://github.com/kristjan/adbqr
1•kristjan•1h ago•0 comments

Developers don't understand CORS (2019)

https://fosterelli.co/developers-dont-understand-cors
12•toilet•1h ago•3 comments

Australia confirms first case of H5N1 bird flu as virus reaches every continent

https://www.bbc.com/news/articles/c4gykxklvl5o
1•1659447091•1h ago•0 comments

White House delays US voting-machine vulnerability report

https://www.reuters.com/world/white-house-delays-release-us-voting-machine-study-midterms-near-20...
51•logickkk1•1h ago•29 comments

Hop.Earth – Google Maps and Need For Speed. World around created while driving

https://hop.earth/?server=RDgva&route=XxOaosUo
3•touchpadder•1h ago•1 comments

Data integrity in rqlite: what it checks and what it doesn't

https://rqlite.io/docs/guides/data-integrity/
1•otoolep•1h ago•0 comments

Ratchet – BIOS flashing toolkit with a built-in MCP server for AI agents

https://github.com/jackulau/ratchet
2•JackLau•1h ago•0 comments

Apple-FM – a command-line interface for Apple's on-device models

https://www.npmjs.com/package/apple-fm
3•brianwestphal•1h ago•2 comments

XRPentest: AI-powered security audit tool for VR/XR headsets

https://xrpentest.com
1•h_a_c_k•1h ago•0 comments

Google Can't Math Parsecs

https://www.lesswrong.com/posts/BmqzjcD4tGvy3bim8/google-can-t-math-parsecs
8•ubutler•1h ago•2 comments

How the AI Village Works

https://theaidigest.org/village/blog/how-the-ai-village-works
2•vinhnx•1h ago•0 comments