Skip to content

Commit 1f006e2

Browse files
authored
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 c85f7e9 commit 1f006e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)