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