From 235de5dd904d8189aa3e5c6bebf1eb39b85cfaad Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 18 Jan 2022 11:27:01 +0000 Subject: [PATCH] FIX: Add `/session/sso` service-worker workaround for chrome 97 (#15630) Followup to 2278c7f82dd8e7f24dc6dc66bc6fea02e598c6d0. Depending on the site's SSO implementation, this route is also used as part of a redirect sequence and needs to be able to set cookies. Chrome bug reference: https://bugs.chromium.org/p/chromium/issues/detail?id=1286367 --- app/assets/javascripts/service-worker.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/service-worker.js.erb b/app/assets/javascripts/service-worker.js.erb index 1b3380b930d..52236616ec3 100644 --- a/app/assets/javascripts/service-worker.js.erb +++ b/app/assets/javascripts/service-worker.js.erb @@ -7,7 +7,7 @@ workbox.setConfig({ debug: false }); -var authUrls = ["auth", "session/sso_login"].map(path => `<%= Discourse.base_path %>/${path}`); +var authUrls = ["auth", "session/sso_login", "session/sso"].map(path => `<%= Discourse.base_path %>/${path}`); var cacheVersion = "1"; var discourseCacheName = "discourse-" + cacheVersion;