mirror of
https://gitlab.com/MrFry/qmining-page
synced 2026-04-28 03:07:36 +02:00
Sending cookies with fetch, bg color change
This commit is contained in:
@@ -18,7 +18,9 @@ export default function SubjectBrowser (props) {
|
||||
|
||||
useEffect(() => {
|
||||
console.info('Fetching data')
|
||||
fetch(`${constants.apiUrl}data.json`)
|
||||
fetch(`${constants.apiUrl}data.json`, {
|
||||
credentials: 'include'
|
||||
})
|
||||
.then((resp) => {
|
||||
return resp.json()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user