forked from AkkomaGang/akkoma-fe
Set cookies on fetch
This commit is contained in:
parent
87b18da811
commit
522110c0bc
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue