FIX: Auth popup handling for Safari same-site cookie quirks

When opening authentication popup, start with an on-site URL. Opening "about:blank", and then POSTing the form does not send same-site=Lax cookies. Opening the popup to a page on the site domain, and then POSTing the form, works successfully.
This commit is contained in:
David Taylor 2019-08-30 17:55:18 +01:00
parent e515324afa
commit 310a8ac242

View File

@ -53,7 +53,7 @@ const LoginMethod = Ember.Object.extend({
}
LoginMethod.buildPostForm(authUrl).then(form => {
const windowState = window.open(
"about:blank",
authUrl,
"auth_popup",
`menubar=no,status=no,height=${height},width=${width},left=${left},top=${top}`
);