{"id":2714,"date":"2016-04-19T16:05:14","date_gmt":"2016-04-19T16:05:14","guid":{"rendered":"https:\/\/www.thesslstore.com\/blog\/?p=2714"},"modified":"2016-08-04T07:42:26","modified_gmt":"2016-08-04T07:42:26","slug":"google-restricts-geolocation-https-chrome-version-50","status":"publish","type":"post","link":"https:\/\/www.thesslstore.com\/blog\/google-restricts-geolocation-https-chrome-version-50\/","title":{"rendered":"Google Restricts GeoLocation to HTTPS in Chrome Version 50"},"content":{"rendered":"<h2><strong>Geolocation only available over HTTPS in Chrome 50.<\/strong><\/h2>\n<p>With the release of Chrome v50, the Geolocation API has officially been restricted to HTTPS-only. What does this mean? If you want your website to be able to request the user\u2019s location over the internet, you need to serve your site over HTTPS.<\/p>\n<p>Attempting to get the user\u2019s location over HTTP will simply fail. The user will not ever know you wanted to request their location (unless they happen to have the developer console open).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2724\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2016\/04\/GeoLocation.jpg\" alt=\"GeoLocation\" width=\"271\" height=\"118\" \/><\/p>\n<p>Remember that using Geolocation results in a permissions prompt. Adding HTTPS support to your site does not automatically give you permission to get the user\u2019s location. They still get to choose to allow or block that information.<\/p>\n<p>For any developers who may be panicking about testing or prototyping: Don\u2019t worry! HTTPS is not the only secure origin. Anything done on localhost\u00a0 is also considered secure origins (<a href=\"https:\/\/www.chromium.org\/Home\/chromium-security\/prefer-secure-origins-for-powerful-new-features\" rel=\"nofollow\">for a full list of secure origins<\/a> click here).<\/p>\n<h2><strong>Powerful Features &amp; Secure Origins<\/strong><\/h2>\n<p>This is part of a bigger campaign by Google Chrome\u2019s Security team known as \u201cDeprecating Powerful Features on Insecure Origins\u201d. That\u2019s a mouthful, huh? In plain language, this means that connections which cannot be trusted will not have full access to certain browser functionality.<\/p>\n<p>These \u201cpowerful features\u201d either handle sensitive user data (personally-identifiable information, user credentials, payment information, etc), or make changes to the user\u2019s experience that should only be done over secure (and authenticated) connections. This set of features includes: device motion \/ orientation, geolocation, and accessing the user\u2019s camera and microphone).<\/p>\n<p>So far, only Geolocation and getUserMedia (access to webcam \/ microphone) have been given the HTTPS-only treatment. \u00a0We put together a handy chart (look below) showing the features slated to go secure origins-only for reference.<\/p>\n<p>Google Chrome\u2019s Security team continually evaluates the real-world use and posts warnings to their <a href=\"https:\/\/groups.google.com\/a\/chromium.org\/forum\/#!forum\/blink-dev\" rel=\"nofollow\">blink-dev mailing list<\/a> before removing any features, which makes predicting difficult. But if you are on the lookout you should never be left in the dark.<\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"117\"><strong>Feature<\/strong><\/td>\n<td width=\"117\"><strong>HTTPS Only?<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"117\"><a href=\"https:\/\/www.chromestatus.com\/features\/5556931766779904\">Device motion<\/a> \/ <a href=\"https:\/\/www.chromestatus.com\/features\/5874690627207168\" rel=\"nofollow\">orientation<\/a><\/p>\n<p>&nbsp;<\/td>\n<td width=\"117\">Not yet<\/td>\n<\/tr>\n<tr>\n<td width=\"117\"><a href=\"https:\/\/www.chromestatus.com\/features\/6578378068983808\" rel=\"nofollow\">Encrypted Media Extensions (EME)<\/a><\/p>\n<p>&nbsp;<\/td>\n<td width=\"117\">Not yet<\/td>\n<\/tr>\n<tr>\n<td width=\"117\"><a href=\"https:\/\/www.chromestatus.com\/features\/5259513871466496\" rel=\"nofollow\">Fullscreen<\/a><\/p>\n<p>&nbsp;<\/td>\n<td width=\"117\">Not yet<\/td>\n<\/tr>\n<tr>\n<td width=\"117\"><a href=\"https:\/\/www.chromestatus.com\/features\/6348855016685568\" rel=\"nofollow\">Geolocation<\/a><\/p>\n<p>&nbsp;<\/td>\n<td width=\"117\">Yes (<a href=\"https:\/\/www.chromestatus.com\/features\/5636088701911040\" rel=\"nofollow\">Chrome 50<\/a>)<\/td>\n<\/tr>\n<tr>\n<td width=\"117\"><a href=\"https:\/\/www.chromestatus.com\/features\/6067380039974912\" rel=\"nofollow\">getUserMedia<\/a><br \/>\n(access to users\u2019s camera and microphone)<\/td>\n<td width=\"117\">Yes (<a href=\"https:\/\/www.chromestatus.com\/features\/5703419427815424\" rel=\"nofollow\">Chrome 47<\/a>)<\/td>\n<\/tr>\n<tr>\n<td width=\"117\">AppCache<\/p>\n<p>&nbsp;<\/td>\n<td width=\"117\">Not yet<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Geolocation only available over HTTPS in Chrome 50. With the release of Chrome v50, the Geolocation API has officially been restricted to HTTPS-only. What does this mean? If you want&#8230;<\/p>\n","protected":false},"author":2,"featured_media":2834,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":"","tve_updated_post":"","tve_custom_css":"","tve_user_custom_css":"","tve_globals":{},"tcb2_ready":0,"tcb_editor_enabled":0,"tve_landing_page":"","_tve_header":"","_tve_footer":""},"categories":[17],"tags":[],"class_list":["post-2714","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-industry-lowdown","post-without-tags"],"views":10929,"jetpack_featured_media_url":"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2016\/04\/iStock_91433131_MEDIUM.jpg","_links":{"self":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/2714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/comments?post=2714"}],"version-history":[{"count":0,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/2714\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/media\/2834"}],"wp:attachment":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/media?parent=2714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/categories?post=2714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/tags?post=2714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}