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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user