mirror of
https://github.com/pldubouilh/gossa.git
synced 2026-08-27 20:36:33 -04:00
Merge pull request #6 from utdemir/master
Pass credentials on `fetch` call
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user