{"id":81,"date":"2024-10-21T11:10:40","date_gmt":"2024-10-21T03:10:40","guid":{"rendered":"https:\/\/a.li6.cc\/?p=81"},"modified":"2024-10-21T11:10:40","modified_gmt":"2024-10-21T03:10:40","slug":"%e5%89%8d%e7%ab%afajax%e8%af%b7%e6%b1%82%e6%af%8f%e6%ac%a1%e6%8f%90%e4%ba%a4%e7%9a%84phpsessid%e9%83%bd%e4%b8%8d%e4%b8%80%e6%a0%b7%e7%9a%84bug%e4%bf%ae%e5%a4%8d","status":"publish","type":"post","link":"https:\/\/a.li6.cc\/index.php\/2024\/10\/21\/%e5%89%8d%e7%ab%afajax%e8%af%b7%e6%b1%82%e6%af%8f%e6%ac%a1%e6%8f%90%e4%ba%a4%e7%9a%84phpsessid%e9%83%bd%e4%b8%8d%e4%b8%80%e6%a0%b7%e7%9a%84bug%e4%bf%ae%e5%a4%8d\/","title":{"rendered":"\u524d\u7aefajax\u8bf7\u6c42\u6bcf\u6b21\u63d0\u4ea4\u7684PHPSESSID\u90fd\u4e0d\u4e00\u6837\u7684bug\u4fee\u590d"},"content":{"rendered":"<p>php\u670d\u52a1\u7aef\uff0c\u9700\u8981\u5728\u8de8\u57df\u7684\u5730\u65b9\u52a0\u8fd9\u4e2a\u5934\uff1a<br \/>\nheader( 'Access-Control-Allow-Credentials:true' );<\/p>\n<p>\u524d\u7aef\u8bf7\u6c42\u65f6\u9700\u8981\u52a0\u8fd9\u4e2a\u53c2\u6570<br \/>\nxhrFields:{<br \/>\nwithCredentials: true<br \/>\n},<br \/>\n\u5982\uff1a<\/p>\n<p>$.ajax({<br \/>\nurl: &quot;B. abc.com &quot; ,<br \/>\nxhrFields:{<br \/>\nwithCredentials: true<br \/>\n},<br \/>\n});<\/p>\n","protected":false},"excerpt":{"rendered":"<p>php\u670d\u52a1\u7aef\uff0c\u9700\u8981\u5728\u8de8\u57df\u7684\u5730\u65b9\u52a0\u8fd9\u4e2a\u5934\uff1a header( &#8216;Access-Con &hellip; <a href=\"https:\/\/a.li6.cc\/index.php\/2024\/10\/21\/%e5%89%8d%e7%ab%afajax%e8%af%b7%e6%b1%82%e6%af%8f%e6%ac%a1%e6%8f%90%e4%ba%a4%e7%9a%84phpsessid%e9%83%bd%e4%b8%8d%e4%b8%80%e6%a0%b7%e7%9a%84bug%e4%bf%ae%e5%a4%8d\/\">\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":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/81"}],"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=81"}],"version-history":[{"count":1,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"predecessor-version":[{"id":82,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/81\/revisions\/82"}],"wp:attachment":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}