cookies and login fix

This commit is contained in:
mrfry 2023-04-02 10:30:20 +02:00
parent 885198d357
commit 57aea151f4
7 changed files with 19 additions and 21 deletions

View file

@ -122,7 +122,8 @@
button.innerText = '...'
button.classList.add('disabledButton')
button.disabled = true
const rawResponse = await fetch('<%= devel ? 'http' : 'https' %>://frylabs.net/api/login', {
// TODO: get url from controller
const rawResponse = await fetch('<%= devel ? 'http://localhost:8080/api/login' : 'https://frylabs.net/api/login' %>', {
method: 'POST',
credentials: 'include',
headers: {