Skip to content

Commit

Permalink
Send cookie with state request
Browse files Browse the repository at this point in the history
  • Loading branch information
jnordberg committed Oct 11, 2017
1 parent 0b0405d commit 4d7aaf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async function runApp(initial_state) {
}

async function getOffchainState() {
return (await fetch('/api/v1/state')).json()
return (await fetch('/api/v1/state', {credentials: 'same-origin'})).json()
}

async function main() {
Expand Down

0 comments on commit 4d7aaf1

Please sign in to comment.