{"id":88,"date":"2025-07-01T01:53:47","date_gmt":"2025-06-30T17:53:47","guid":{"rendered":"https:\/\/a.li6.cc\/?p=88"},"modified":"2025-07-01T01:53:47","modified_gmt":"2025-06-30T17:53:47","slug":"nginx%e8%ae%be%e7%bd%ae%e5%85%81%e8%ae%b8%e5%a4%9a%e4%b8%aa%e5%9f%9f%e5%90%8d%e8%b7%a8%e5%9f%9f","status":"publish","type":"post","link":"https:\/\/a.li6.cc\/index.php\/2025\/07\/01\/nginx%e8%ae%be%e7%bd%ae%e5%85%81%e8%ae%b8%e5%a4%9a%e4%b8%aa%e5%9f%9f%e5%90%8d%e8%b7%a8%e5%9f%9f\/","title":{"rendered":"nginx\u8bbe\u7f6e\u5141\u8bb8\u591a\u4e2a\u57df\u540d\u8de8\u57df"},"content":{"rendered":"<pre><code> location \/ {\n       if ($http_origin = &#039;https:\/\/www.nide123.com&#039;) {\n                add_header &#039;Access-Control-Allow-Origin&#039; $http_origin  always; \n             }\n       if ($http_origin = &#039;https:\/\/nide123.com&#039;) {\n                add_header &#039;Access-Control-Allow-Origin&#039; $http_origin  always; \n             }\n       if ($http_origin = &#039;https:\/\/www.li2345.com&#039;) {\n                add_header &#039;Access-Control-Allow-Origin&#039; $http_origin  always; \n             }\n       if ($http_origin = &#039;https:\/\/li2345.com&#039;) {\n                add_header &#039;Access-Control-Allow-Origin&#039; $http_origin  always; \n             }\n              add_header &#039;Access-Control-Allow-Origin&#039; &#039;https:\/\/li2345.com&#039; ; \n\n  }\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>location \/ { if ($http_origin = &#039;ht &hellip; <a href=\"https:\/\/a.li6.cc\/index.php\/2025\/07\/01\/nginx%e8%ae%be%e7%bd%ae%e5%85%81%e8%ae%b8%e5%a4%9a%e4%b8%aa%e5%9f%9f%e5%90%8d%e8%b7%a8%e5%9f%9f\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/88"}],"collection":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/comments?post=88"}],"version-history":[{"count":1,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/88\/revisions\/90"}],"wp:attachment":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/categories?post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/tags?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}