Merge branch 'fix/set-cookie' into 'develop'
Set cookies on fetch See merge request !114
This commit is contained in:
commit
3eaaa4c16d
1 changed files with 2 additions and 0 deletions
|
@ -33,8 +33,10 @@ import 'whatwg-fetch'
|
|||
const oldfetch = window.fetch
|
||||
|
||||
let fetch = (url, options) => {
|
||||
options = options || {}
|
||||
const baseUrl = ''
|
||||
const fullUrl = baseUrl + url
|
||||
options.credentials = 'same-origin'
|
||||
return oldfetch(fullUrl, options)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue