Merge branch 'fix/set-cookie' into 'develop'
Set cookies on fetch See merge request !114
This commit is contained in:
commit
3eaaa4c16d
|
@ -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 New Issue