Skip to content
Snippets Groups Projects
Commit 2b0811dd authored by eal's avatar eal
Browse files

Make sure options exists every time on fetch()

parent 522110c0
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ import 'whatwg-fetch'
const oldfetch = window.fetch
let fetch = (url, options) => {
options = options || {}
const baseUrl = ''
const fullUrl = baseUrl + url
options.credentials = 'same-origin'
......
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