{"id":26,"date":"2021-07-28T23:38:22","date_gmt":"2021-07-28T15:38:22","guid":{"rendered":"http:\/\/blog.nonot.cn\/?p=26"},"modified":"2024-07-09T15:13:03","modified_gmt":"2024-07-09T07:13:03","slug":"2107282343","status":"publish","type":"post","link":"https:\/\/blog.nonot.cn\/index.php\/2021\/07\/28\/2107282343\/","title":{"rendered":"This request has been blocked; the content must be served over HTTPS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5728 HTTPS \u627f\u8f7d\u7684\u9875\u9762\u4e0a\u4e0d\u5141\u8bb8\u51fa\u73b0 http \u8bf7\u6c42\uff0c\u4e00\u65e6\u51fa\u73b0\u5c31\u662f\u63d0\u793a\u6216\u62a5\u9519\uff1a<br>This request has been blocked; the content must be served over HTTPS<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">html\uff1a<br>&lt;meta http-equiv=&#8221;Content-Security-Policy&#8221; content=&#8221;upgrade-insecure-requests&#8221;\/&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">php:<br>header(&#8220;Content-Security-Policy: upgrade-insecure-requests&#8221;);<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">nginx:\u5728server\u6a21\u5757\u589e\u52a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">server {<br>         add_header Content-Security-Policy &#8220;upgrade-insecure-requests;connect-src *&#8221;;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8230;&#8230;&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>add_header Content-Security-Policy &#8220;upgrade-insecure-requests;connect-src *&#8221;;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 HTTPS \u627f\u8f7d\u7684\u9875\u9762\u4e0a\u4e0d\u5141\u8bb8\u51fa\u73b0 http \u8bf7\u6c42\uff0c\u4e00\u65e6&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,6,7],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-htmlcss","category-nginx","category-php"],"_links":{"self":[{"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":1,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":1349,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/posts\/26\/revisions\/1349"}],"wp:attachment":[{"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}