FIX: Add `/session/sso` service-worker workaround for chrome 97 (#15630)

Followup to 2278c7f82d. 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
This commit is contained in:
David Taylor 2022-01-18 11:27:01 +00:00 committed by GitHub
parent f2902d3830
commit 235de5dd90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;