mirror of
https://gitlab.com/MrFry/qmining-data-editor
synced 2025-04-01 20:24:01 +02:00
Sending cookies with fetch, bg color change
This commit is contained in:
parent
0ba12f4d67
commit
179aa6ebfa
4 changed files with 7 additions and 5 deletions
|
@ -52,7 +52,9 @@ export default function Index (props) {
|
|||
setData(null)
|
||||
const toFetch = `${constants.apiUrl}data.json`
|
||||
console.info('Fetching', toFetch)
|
||||
fetch(toFetch)
|
||||
fetch(toFetch, {
|
||||
credentials: 'include'
|
||||
})
|
||||
.then((resp) => {
|
||||
if (resp && resp.ok) {
|
||||
return resp.json()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue