Include cookie in every request
This commit is contained in:
parent
2b0811dddc
commit
00589a9af1
@ -36,7 +36,7 @@ let fetch = (url, options) => {
|
|||||||
options = options || {}
|
options = options || {}
|
||||||
const baseUrl = ''
|
const baseUrl = ''
|
||||||
const fullUrl = baseUrl + url
|
const fullUrl = baseUrl + url
|
||||||
options.credentials = 'same-origin'
|
options.credentials = 'include'
|
||||||
return oldfetch(fullUrl, options)
|
return oldfetch(fullUrl, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user