mirror of
https://github.com/pldubouilh/gossa
synced 2025-12-06 08:22:32 +01:00
Pass credentials on fetch call
This commit is contained in:
parent
52188c1ae1
commit
4011d00a59
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ const prevent = e => e.preventDefault()
|
|||
|
||||
// Soft nav
|
||||
function browseTo (href) {
|
||||
fetch(href).then(r => r.text().then(t => {
|
||||
fetch(href, { credentials: 'include' }).then(r => r.text().then(t => {
|
||||
const parsed = new DOMParser().parseFromString(t, 'text/html')
|
||||
const table = parsed.querySelectorAll('table')[0].innerHTML
|
||||
document.body.querySelectorAll('table')[0].innerHTML = table
|
||||
|
|
|
|||
Loading…
Reference in a new issue