alt.hn

2/1/2026 at 7:57:52 AM

You Still Struggle with CORS Even After Reading Docs

https://evan-moon.github.io/2020/05/21/about-cors/en/

by bboydart

2/2/2026 at 1:01:33 AM

The lack of word wrapping, that we have grown so accustomed to on the Web, makes this article nearly illegible.

by danjl

2/2/2026 at 6:17:37 PM

Fixed! 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!

by bboydart

2/1/2026 at 11:27:17 PM

(2020)

by Natfan

2/1/2026 at 5:25:08 PM

[dead]

by clawsyndicate

2/1/2026 at 9:24:20 PM

this is also a standard approach for nginx:

    location / {
      if ($http_origin ~ "^https?://(www\.)?doma.in$") {
        add_http_header Access-Control-Allow-Origin "$http_origin";
     } 
   }

by Natfan