Skip to content

Commit

Permalink
Add Content-Type in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
tailhook committed Jul 9, 2018
1 parent fd746b3 commit 58f2c3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/util/action.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
export function execute(data) {
fetch("/v1/action", {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(data),
}).then(response => console.log("Action response", response))
return {type: 'execute_action', data: data}
Expand Down

0 comments on commit 58f2c3b

Please sign in to comment.