mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
cookies and login fix
This commit is contained in:
parent
885198d357
commit
57aea151f4
7 changed files with 19 additions and 21 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue