Skip to content
Snippets Groups Projects
Commit 3eaaa4c1 authored by lambadalambda's avatar lambadalambda
Browse files

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

Set cookies on fetch

See merge request !114
parents 7abcb13e 298bf5cf
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment