Merge branch 'fix/set-cookie' into 'develop'

Set cookies on fetch

See merge request !114
This commit is contained in:
lambadalambda 2017-09-13 04:47:23 -04:00
commit 3eaaa4c16d

View file

@ -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)
}