Compare commits
No commits in common. "21f272e9f08ea2788b44ba9a92037c38427c8e60" and "6081e42d148fd17bae5e0f89e2ebc18d4411ce89" have entirely different histories.
21f272e9f0
...
6081e42d14
@ -31,8 +31,6 @@
|
|||||||
}))[0];
|
}))[0];
|
||||||
if (($cookieDomain && (is_null($httpOrigin) || $originDomain)) && setcookie('JWT', $queryString['token'], (time() + $settings->Session['Duration']), '/', '.' . $cookieDomain)) {
|
if (($cookieDomain && (is_null($httpOrigin) || $originDomain)) && setcookie('JWT', $queryString['token'], (time() + $settings->Session['Duration']), '/', '.' . $cookieDomain)) {
|
||||||
header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
|
header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
|
||||||
header('Access-Control-Allow-Credentials: true');
|
|
||||||
header('Access-Control-Max-Age: 86400');
|
|
||||||
header("HTTP/1.1 202 Accepted");
|
header("HTTP/1.1 202 Accepted");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
10
public/misc/script.iframe.js
Normal file
10
public/misc/script.iframe.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
$(document).ready(function(){
|
||||||
|
$.post("lucidAuth.setXDomainCookie.php", {
|
||||||
|
do: "login",
|
||||||
|
ref: $('#ref').val()
|
||||||
|
})
|
||||||
|
.done(function(data,_status) {
|
||||||
|
if (data.Result === 'Success') {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
@ -41,11 +41,8 @@ console.log('CrossDomainLogin initiated');
|
|||||||
var XHR = [];
|
var XHR = [];
|
||||||
cookieDomains.forEach(function(domain) {
|
cookieDomains.forEach(function(domain) {
|
||||||
XHR.push($.get({
|
XHR.push($.get({
|
||||||
url: "https://auth." + domain + "/lucidAuth.requestCookie.php",
|
url: "https://auth." + domain + "/lucidAuth.setXDomainCookie.php",
|
||||||
crossDomain: true,
|
crossDomain: true,
|
||||||
xhrFields: {
|
|
||||||
withCredentials: true,
|
|
||||||
},
|
|
||||||
data: {
|
data: {
|
||||||
ref: btoa(JSON.stringify({
|
ref: btoa(JSON.stringify({
|
||||||
action: 'login',
|
action: 'login',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user