News for hackers. Stuff that matters.
Re:You Still Struggle with CORS Even After Reading Docs by Natfan on Sunday February 01, 2026 @04:24PM (#46849507)
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";
     } 
   }

There are no comments on this comment yet.