11 ms·
Why we need to know about CORS (2020)
- clawsyndicate 8mo ago[dead]
- Natfan 8mo agothis is also a standard approach for nginx: location / { if ($http_origin ~ "^https?://(www\.)?doma.in$") { add_http_header Access-Control-Allow-Origin "$http_origin"; } }
- Natfan 8mo ago(2020)
- danjl 8mo agoThe lack of word wrapping, that we have grown so accustomed to on the Web, makes this article nearly illegible.
- bboydart 8mo agoFixed! Thanks for the heads-up. I'm used to writing in Korean where wrapping is rarely an issue, so I missed this during the English migration. It's updated now—thanks for the patience!
- yoyohello13 8mo agoI’m dealing with this now actually. So good timing.
- socalgal2 8mo agoI'm guessing in 2026, your favorite LLM and it just gives you the answer
- bboydart 8mo agoTrue, LLMs are great at giving immediate fixes. My goal with this post was to provide the 'why' and the underlying structure that helps you debug it even when the LLM gives you a hallucinated config :)