<input type="hidden" id="_wpnonce" name="_wpnonce" value="5a5396bb88" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/5054" /><input type="hidden" id="_wpnonce" name="_wpnonce" value="5a5396bb88" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/5054" />{"id":5054,"date":"2016-05-10T21:40:05","date_gmt":"2016-05-10T11:40:05","guid":{"rendered":"https:\/\/www.businesslegions.com\/blog\/?p=5054"},"modified":"2016-05-10T21:55:11","modified_gmt":"2016-05-10T11:55:11","slug":"displaying-http-content-in-https-pages","status":"publish","type":"post","link":"https:\/\/www.businesslegions.com\/blog\/2016\/05\/10\/displaying-http-content-in-https-pages\/","title":{"rendered":"DISPLAYING HTTP CONTENT IN HTTPS PAGES"},"content":{"rendered":"<!--CusAds0--><p>This week we had to look at an issue with displaying HTTP (insecure) content\u00a0in a HTTPS (secure) page. According to a number of sites, different browsers by default don&#8217;t allow this as the HTTPS page is secure and displaying non-secure content is a no-no. This is called displaying MIXED CONTENT.<\/p>\n<p>The error message you would see in the browsers developer console would be something like:<\/p>\n<p>Mixed Content The page at https:\/\/website was loaded over HTTPS but requested an image http:\/\/website\/image.gif This content should also be served over HTTPS.<\/p>\n<p>The recommended solution\u00a0is to make sure that all the HTTP content is changed to HTTPS so that everything on the HTTPS page is encrypted. This is a very tedious task. The way I solved this issue was to include a special meta tag at the header of the page to upgrade all HTTP links to HTTPS automatically.<\/p><!--CusAds0-->\n<p>The one I used was:<\/p>\n<div id=\"wpshdo_1\" class=\"wp-synhighlighter-outer\"><div id=\"wpshdt_1\" class=\"wp-synhighlighter-expanded\"><table border=\"0\" width=\"100%\"><tr><td align=\"left\" width=\"80%\"><a name=\"#codesyntax_1\"><\/a><a id=\"wpshat_1\" class=\"wp-synhighlighter-title\" href=\"#codesyntax_1\"  onClick=\"javascript:wpsh_toggleBlock(1)\" title=\"Click to show\/hide code block\">Source code<\/a><\/td><td align=\"right\"><a href=\"#codesyntax_1\" onClick=\"javascript:wpsh_code(1)\" title=\"Show code only\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/code.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"#codesyntax_1\" onClick=\"javascript:wpsh_print(1)\" title=\"Print code\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/printer.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"https:\/\/www.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/About.html\" target=\"_blank\" title=\"Show plugin information\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/info.gif?strip=all&w=960\" \/><\/a>&nbsp;<\/td><\/tr><\/table><\/div><div id=\"wpshdi_1\" class=\"wp-synhighlighter-inner\" style=\"display: block;\"><pre class=\"php\" style=\"font-family:monospace;\"><span class=\"sy0\">&lt;<\/span>meta http<span class=\"sy0\">-<\/span>equiv<span class=\"sy0\">=<\/span><span class=\"st0\">&quot;Content-Security-Policy&quot;<\/span> content<span class=\"sy0\">=<\/span><span class=\"st0\">&quot;upgrade-insecure-requests&quot;<\/span><span class=\"sy0\">&gt;<\/span><\/pre><\/div><\/div>\n<div id=\"attachment_5057\" style=\"width: 893px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2016\/05\/DISPLAYING-HTTP-CONTENT-IN-HTTPS-PAGES.png?strip=all&w=2560\"><img decoding=\"async\" aria-describedby=\"caption-attachment-5057\" class=\"size-large wp-image-5057\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2016\/05\/DISPLAYING-HTTP-CONTENT-IN-HTTPS-PAGES-883x183.png?strip=all\" alt=\"DISPLAYING HTTP CONTENT IN HTTPS PAGES\" width=\"883\" height=\"183\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2016\/05\/DISPLAYING-HTTP-CONTENT-IN-HTTPS-PAGES-883x183.png?strip=all 883w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2016\/05\/DISPLAYING-HTTP-CONTENT-IN-HTTPS-PAGES.png?strip=all&amp;zoom=0.2&amp;resize=883%2C183 176w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2016\/05\/DISPLAYING-HTTP-CONTENT-IN-HTTPS-PAGES.png?strip=all&amp;zoom=0.4&amp;resize=883%2C183 353w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2016\/05\/DISPLAYING-HTTP-CONTENT-IN-HTTPS-PAGES.png?strip=all&amp;zoom=0.6&amp;resize=883%2C183 529w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2016\/05\/DISPLAYING-HTTP-CONTENT-IN-HTTPS-PAGES.png?strip=all&amp;zoom=0.8&amp;resize=883%2C183 706w\" sizes=\"(max-width: 883px) 100vw, 883px\" \/><\/a><p id=\"caption-attachment-5057\" class=\"wp-caption-text\">DISPLAYING HTTP CONTENT IN HTTPS PAGES<\/p><\/div>\n<div class=\"lt-box\" style=\"border:1px solid #1d6a9e\"><div class=\"lt-box-title\" style=\"background-color:#2485C6;border-top:1px solid #a7cee8;text-shadow:1px 1px 0 #0b283b\">DO YOU LIKE WHAT YOU'VE READ?<\/div><div class=\"lt-box-content\">Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!\r\n\r\n<p><div class=\"tnp tnp-subscription \">\n<form method=\"post\" action=\"https:\/\/www.businesslegions.com\/blog\/wp-admin\/admin-ajax.php?action=tnp&amp;na=s\">\n<input type=\"hidden\" name=\"nlang\" value=\"\">\n<div class=\"tnp-field tnp-field-firstname\"><label for=\"tnp-1\">Name<\/label>\n<input class=\"tnp-name\" type=\"text\" name=\"nn\" id=\"tnp-1\" value=\"\" placeholder=\"\"><\/div>\n<div class=\"tnp-field tnp-field-email\"><label for=\"tnp-2\">Email<\/label>\n<input class=\"tnp-email\" type=\"email\" name=\"ne\" id=\"tnp-2\" value=\"\" placeholder=\"\" required><\/div>\n<div class=\"tnp-field tnp-field-button\" style=\"text-align: left\"><input class=\"tnp-submit\" type=\"submit\" value=\"Subscribe\" style=\"\">\n<\/div>\n<\/form>\n<\/div>\n<\/p>\r\n\r\n<\/div><\/div><!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>This week we had to look at an issue with displaying HTTP (insecure) content\u00a0in a HTTPS (secure) page. According to a number of sites, different browsers by default don&#8217;t allow this as the HTTPS page is secure and displaying non-secure content is a no-no. This is called displaying MIXED CONTENT. The error message you would [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5060,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,2046,1043],"tags":[492,2361,2359,2360,1622,1861,2362,2363,94],"class_list":["post-5054","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","category-website","category-websites","tag-content","tag-display","tag-http","tag-https","tag-iframe","tag-pages","tag-secure","tag-unsecure","tag-website"],"_links":{"self":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/5054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/comments?post=5054"}],"version-history":[{"count":6,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/5054\/revisions"}],"predecessor-version":[{"id":5063,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/5054\/revisions\/5063"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media\/5060"}],"wp:attachment":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media?parent=5054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/categories?post=5054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/tags?post=5054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}