mirror of
https://github.com/sigmasternchen/axowall
synced 2025-03-15 00:28:54 +00:00
fix: Add credential flag to fetch call for cross origin challenges
This commit is contained in:
parent
f405e22775
commit
296a721bbc
1 changed files with 3 additions and 1 deletions
|
@ -110,7 +110,9 @@ const prepareCaptcha = async (captcha: Element, staticSuccessCallback?: (respons
|
|||
: prepareInputCaptcha)
|
||||
(captcha, challengeCompletesCallback);
|
||||
|
||||
const challengeResponse = await fetch(challengeUrl);
|
||||
const challengeResponse = await fetch(challengeUrl, {
|
||||
credentials: "include",
|
||||
});
|
||||
const challenge = await challengeResponse.json() as Challenge;
|
||||
|
||||
if (!validateChallenge(challenge)) {
|
||||
|
|
Loading…
Reference in a new issue