mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Sending cookies with fetch, bg color change
This commit is contained in:
parent
9f576a41f6
commit
cbba4cd616
10 changed files with 21 additions and 11 deletions
|
@ -12,7 +12,9 @@ export default function AllQuestions (props) {
|
|||
const [searchTerm, setSearchTerm] = useState('')
|
||||
|
||||
useEffect(() => {
|
||||
fetch(`${constants.apiUrl}data.json`)
|
||||
fetch(`${constants.apiUrl}data.json`, {
|
||||
credentials: 'include'
|
||||
})
|
||||
.then((resp) => {
|
||||
return resp.json()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue