{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"browser: secure context for localhost","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/798 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"798\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<p><a class=\"reference external\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Firefox\/Releases\/84#security\">https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Firefox\/Releases\/84#security<\/a><\/p>\n<blockquote>\nFirefox now ensures that localhost URLs \u2014 such as <tt class=\"docutils literal\"><span class=\"pre\">http:\/\/localhost\/<\/span><\/tt> and <tt class=\"docutils literal\"><span class=\"pre\">http:\/\/dev.localhost\/<\/span><\/tt> \u2014 refer to the local host's loopback interface (e.g. <tt class=\"docutils literal\"><span class=\"pre\">http:\/\/127.0.0.1<\/span><\/tt>). As a result, resources loaded from localhost are now assumed to have been delivered securely<\/blockquote>\n<p><a class=\"reference external\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Security\/Secure_Contexts#when_is_a_context_considered_secure\">https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Security\/Secure_Contexts#when_is_a_context_considered_secure<\/a><\/p>\n<blockquote>\n<p>Locally-delivered resources such as those with <tt class=\"docutils literal\"><span class=\"pre\">http:\/\/127.0.0.1<\/span><\/tt> URLs, <tt class=\"docutils literal\"><span class=\"pre\">http:\/\/localhost<\/span><\/tt> and <tt class=\"docutils literal\"><span class=\"pre\">http:\/\/*.localhost<\/span><\/tt> URLs (e.g. <tt class=\"docutils literal\"><span class=\"pre\">http:\/\/dev.whatever.localhost\/<\/span><\/tt>), and <tt class=\"docutils literal\"><span class=\"pre\">file:\/\/<\/span><\/tt> URLs are also considered to have been delivered securely.<\/p>\n<p>Note: Firefox 84 and later support <tt class=\"docutils literal\"><span class=\"pre\">http:\/\/localhost<\/span><\/tt> and <tt class=\"docutils literal\"><span class=\"pre\">http:\/\/*.localhost<\/span><\/tt> URLs as trustworthy origins (earlier versions did not, because localhost was not guaranteed to map to a local\/loopback address).<\/p>\n<\/blockquote>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/798\/rev-raw\/58a79b13a21289d44c4e452a3efe05c1babfed21\/README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/798#README.rst\">README.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
