{"id":41189,"date":"2020-08-06T11:04:24","date_gmt":"2020-08-06T11:04:24","guid":{"rendered":"http:\/\/icloud.pe\/blog\/?guid=075ea1a358c4423d655adcd5babf0ddf"},"modified":"2020-08-06T11:04:24","modified_gmt":"2020-08-06T11:04:24","slug":"gov-uk-site-among-those-broken-by-firefox-cookie-changes","status":"publish","type":"post","link":"https:\/\/icloud.pe\/blog\/gov-uk-site-among-those-broken-by-firefox-cookie-changes\/","title":{"rendered":"Gov.uk site among those broken by Firefox cookie changes"},"content":{"rendered":"<p><span class=\"field field-name-field-author field-type-node-reference field-label-hidden\"><br \/>\n      <span class=\"field-item even\"><a href=\"https:\/\/www.cloudpro.co.uk\/authors\/keumars-afifi-sabet\">Keumars Afifi-Sabet<\/a><\/span><br \/>\n  <\/span><\/p>\n<div class=\"field field-name-field-published-date field-type-datetime field-label-hidden\">\n<div class=\"field-items\">\n<div class=\"field-item even\"><span class=\"date-display-single\">6 Aug, 2020<\/span><\/div>\n<\/p><\/div>\n<\/div>\n<p class=\"short-teaser\">\n<a href=\"https:\/\/www.cloudpro.co.uk\/\" title=\"\" class=\"combined-link\"><\/a><\/p>\n<div class=\"field field-name-body\">\n<p><span>A recently introduced change\u00a0to the way the\u00a0<a href=\"https:\/\/www.itpro.co.uk\/web-browsers\/24796\/which-is-the-best-browser-chrome-vs-firefox-vs-microsoft-edge\"  class=\"polaris__link\">Firefox browser<\/a>\u00a0handles\u00a0cookies is said to be breaking a number of websites, including the gov.uk platform, with web developers being urged to re-examine their web code.<\/span><\/p>\n<p><span>Mozilla is changing the default value of the SameSite attribute in the Firefox browser from \u2018none\u2019 to \u2018lax\u2019,\u00a0meaning the browser will withhold cookies on cross-site requests unless the user navigates to the\u00a0<a href=\"https:\/\/www.itpro.co.uk\/network-internet\/web-browser\/356066\/google-experiments-with-shorter-domain-names\"  class=\"polaris__link\">URL<\/a>\u00a0from an external site.<\/span><\/p>\n<p><span>According to reports on GitHub,\u00a0<\/span><a href=\"https:\/\/github.com\/webcompat\/web-bugs\/issues\/56216\"  class=\"polaris__link -is-external\" rel=\"noopener\">services on the gov.uk platform are not usable<\/a><span>\u00a0following the SameSite changes, with users experiencing broken elements or pictures missing, for example, on affected sites.<\/span><\/p>\n<div class=\"polaris__simple-grid--main\">\n<p><span>Under the previous default settings of \u2018none\u2019, cookie data can be shared with third parties or external sites for advertising embedding content, or other cross-site sharing purposes. If any site hasn\u2019t actually set a SameSite value,\u00a0<a href=\"https:\/\/hacks.mozilla.org\/2020\/08\/changes-to-samesite-cookie-behavior\/\"  class=\"polaris__link -is-external\" rel=\"noopener\">Firefox will treat it as \u2018lax\u2019 by default, instead of \u2018none\u2019, as it has done previously<\/a>.<\/span><\/p>\n<p><span>The change is designed\u00a0to guard web users against cross-site request forgery (CSRF) attacks, in which a malicious site attempts to use valid cookies from a legitimate site in order to carry out an attack. This is not to be confused with\u00a0<\/span><a href=\"https:\/\/www.itpro.co.uk\/cross-site-scripting-xss\/34411\/what-is-cross-site-scripting-xss\" class=\"polaris__link\">cross-site scripting (XSS) attacks<\/a><span>, in which the victim\u2019s browser executes a script that\u2019s been injected by an attacker while they visit a legitimate website.<\/span><\/p>\n<\/div>\n<div class=\"polaris__simple-grid--full\">\n<div class=\"polaris__ad -full-width -empty-ad-slot\">\n<div class=\"polaris__ad--inner\">\n<div id=\"bling-10\">\n<div id=\"google_ads_iframe_\/359\/itpro.co.uk\/software\/development\/web-development_14__container__\">Google\u00a0<a href=\"http:\/\/www.chromium.org\/updates\/same-site\"  class=\"polaris__link -is-external\" rel=\"noopener\">also\u00a0started a phased rollout<\/a>\u00a0of the SameSite attribute tweak\u00a0in its Chrome browser earlier this year, however this\u00a0was then\u00a0stalled\u00a0after the company received a number of similar reports of broken sites.<\/div>\n<div>\n<p><span>The issue largely comes down to developers not traditionally specifying their\u00a0SameSite value during the construction of their sites. Treating these unset values as \u2018lax\u2019 by default means these sites will have to manually set their SameSite setting to \u2018none\u2019 if they wish to continue their previous arrangements,\u00a0<a href=\"https:\/\/www.itpro.co.uk\/network-internet\/30416\/http-vs-https-what-difference-does-it-make-to-security\"  class=\"polaris__link\">in addition to enabling HTTPS<\/a>, in order to avoid breaking.<\/span><\/p>\n<div class=\"polaris__newsletter -light\">\n<form action=\"https:\/\/dennis.slgnt.eu\/optiext\/optiextension.dll?ID=MofMeN7jyuGShLcNaQZjt2R0PrNwdl85y9epNKwQKD67qFo2wdgsw249hZyuiJDnRzk5WqgEIoBCgWhEqf&amp;BRANDS_NEWSLETTERIDS=CHP_STD,CLP_STD,ITP_USA,ITP_T20,ITP_TBB&amp;NEWSLETTER_ID=ITP_STD&amp;SUBSCRIBE_SOURCE=web0003itp&amp;BRAND_CODE=ITP\"  method=\"post\" class=\"polaris__form\">\n<div class=\"polaris__newsletter--form\">\n<div class=\"polaris__newsletter--headings\" data-gtm-vis-recent-on-screen-13282986_53=\"1596711631443\" data-gtm-vis-first-on-screen-13282986_53=\"1596711631443\" data-gtm-vis-total-visible-time-13282986_53=\"100\" data-gtm-vis-has-fired-13282986_53=\"1\">\n<p><span>\u201cTesting in the Firefox Nightly and Beta channels has shown that website breakage does occur,\u201d said Mike Conca, group product manager for Firefox. \u201cWhile we have reached out to those sites we\u2019ve encountered and encouraged them to set the SameSite attribute on their web properties, the web is clearly too big to do this on a case-by-case basis.<\/span><\/p>\n<p><span>\u201cIt is important that all web developers test their sites against this new default. This will prepare you for when both Firefox and Chrome browsers make the switch in their respective release channels.\u201d<\/span><\/p>\n<div class=\"polaris__ad -full-width -rendered-ad-slot hide-desktop\">\n<div class=\"polaris__ad--inner\">\n<p><span>Mozilla rolled out the change to approximately half of its Firefox Beta user base with Firefox 79, distributed in June this year. The new SameSite behaviour was the default in the company\u2019s Firefox Nightly pre-release browser since February 2020.<\/span><\/p>\n<p><span>There is currently no timeline to ship the change to the Firefox release channel, as the developers are aiming to see Beta users experiencing a more smooth browsing experience, with the \u201cunacceptable amount of site breakage\u201d dwindling. Mozilla\u00a0<\/span><a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1618610\"  class=\"polaris__link -is-external\" rel=\"noopener\">has established a Bugzilla hub to track broken functionality across the web<\/a><span>, as this is difficult to determine using telemetry data alone, and relies on reports from users.<\/span><\/p>\n<p><span>The company has also urged web developers to test their sites against this new default settings, as this will prepare them for when both Firefox and Chrome browsers make the switch in their respective release channels. Although Mozilla has approached individual sites to notify them, Conca added the scale of the issue means it\u2019s impossible to resolve this alone on a case-by-case basis.<\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/form>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>      Keumars Afifi-Sabet<\/p>\n<p>        6 Aug, 2020    <\/p>\n<p>      A recently introduced change\u00a0to the way the\u00a0Firefox browser\u00a0handles\u00a0cookies is said to be breaking a number of websites, including the gov.uk platform, with web developers being urged to r&#8230;<\/p>\n","protected":false},"author":433,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-41189","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/41189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/users\/433"}],"replies":[{"embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/comments?post=41189"}],"version-history":[{"count":1,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/41189\/revisions"}],"predecessor-version":[{"id":41190,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/posts\/41189\/revisions\/41190"}],"wp:attachment":[{"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/media?parent=41189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/categories?post=41189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icloud.pe\/blog\/wp-json\/wp\/v2\/tags?post=41189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}