Skip to content

Commit 4b9d078

Browse files
emily8rownsbuggay
authored andcommitted
add content type header for the open in editor toolbar button (#229)
Lack of content header was causing Error 400 bad request errors for the open in editor
1 parent f2a32d9 commit 4b9d078

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

front_end/panels/sources/UISourceCodeFrame.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ export class UISourceCodeFrame extends
106106

107107
fetch('/open-stack-frame', {
108108
method: 'POST',
109+
headers: {
110+
'Content-Type': 'application/json',
111+
},
109112
body: JSON.stringify(body),
110113
}).catch(e => console.error(e));
111114
});

0 commit comments

Comments
 (0)