You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In passwordless.login.js and passwordless.register.js, calls to back-end like "/pwmakeAssertion" don't work if the application is deployed in a subfolder like "https://somehost.com/myapplication/".
I suggest to
a) add this line to Login.cshtml and Register.cshtml: <input type="hidden" id="BasePath" name="BasePath" value="@Url.Content("~")">
and
b) add a helper function like
function getFolder() {
var dir = "";
try {
dir = document.getElementById('BasePath').value;
} catch (e) {
}
return dir;
}
and then call fetch(getFolder() + "/pwmakeAssertion" ....
The text was updated successfully, but these errors were encountered:
In passwordless.login.js and passwordless.register.js, calls to back-end like "/pwmakeAssertion" don't work if the application is deployed in a subfolder like "https://somehost.com/myapplication/".
I suggest to
a) add this line to Login.cshtml and Register.cshtml:
<input type="hidden" id="BasePath" name="BasePath" value="@Url.Content("~")">
and
b) add a helper function like
and then call
fetch(getFolder() + "/pwmakeAssertion" ....
The text was updated successfully, but these errors were encountered: