fix: Add credential flag to fetch call for cross origin challenges

This commit is contained in:
sigmasternchen 2025-01-30 11:16:34 +01:00
parent f405e22775
commit 296a721bbc

View file

@ -110,7 +110,9 @@ const prepareCaptcha = async (captcha: Element, staticSuccessCallback?: (respons
: prepareInputCaptcha) : prepareInputCaptcha)
(captcha, challengeCompletesCallback); (captcha, challengeCompletesCallback);
const challengeResponse = await fetch(challengeUrl); const challengeResponse = await fetch(challengeUrl, {
credentials: "include",
});
const challenge = await challengeResponse.json() as Challenge; const challenge = await challengeResponse.json() as Challenge;
if (!validateChallenge(challenge)) { if (!validateChallenge(challenge)) {