Set cookies on fetch
This commit is contained in:
parent
87b18da811
commit
522110c0bc
@ -35,6 +35,7 @@ const oldfetch = window.fetch
|
||||
let fetch = (url, options) => {
|
||||
const baseUrl = ''
|
||||
const fullUrl = baseUrl + url
|
||||
options.credentials = 'same-origin'
|
||||
return oldfetch(fullUrl, options)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user