mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
e515324afa
commit
310a8ac242
@ -53,7 +53,7 @@ const LoginMethod = Ember.Object.extend({
|
|||||||
}
|
}
|
||||||
LoginMethod.buildPostForm(authUrl).then(form => {
|
LoginMethod.buildPostForm(authUrl).then(form => {
|
||||||
const windowState = window.open(
|
const windowState = window.open(
|
||||||
"about:blank",
|
authUrl,
|
||||||
"auth_popup",
|
"auth_popup",
|
||||||
`menubar=no,status=no,height=${height},width=${width},left=${left},top=${top}`
|
`menubar=no,status=no,height=${height},width=${width},left=${left},top=${top}`
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user