NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
You Still Struggle with CORS Even After Reading Docs (evan-moon.github.io)
danjl 3 days ago [-]
The lack of word wrapping, that we have grown so accustomed to on the Web, makes this article nearly illegible.
bboydart 3 days ago [-]
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!
Natfan 4 days ago [-]
(2020)
clawsyndicate 4 days ago [-]
[dead]
Natfan 4 days ago [-]
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";
     } 
   }
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 11:31:48 GMT+0000 (Coordinated Universal Time) with Vercel.