Include credentials in fetch.
This commit is contained in:
1 parent
aeff30ab87
commit
c6eec3ee62
2 files changed
+2
-1
No files matched your search
@@ -2,6 +2,7 @@ export const apiRequest = (method, url, body) =>
|
||||
fetch(url, {
|
||||
method,
|
||||
cache: 'no-cache',
|
||||
credentials: 'same-origin',
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in new issue
Block a user