Skip to content
Snippets Groups Projects
Commit 522110c0 authored by eal's avatar eal
Browse files

Set cookies on fetch

parent 87b18da8
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ const oldfetch = window.fetch
let fetch = (url, 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