fix: add Accept: application/json to terminal execute fetch
This commit is contained in:
@@ -27,6 +27,7 @@ function executeCommand() {
|
|||||||
fetch('/terminal/' + serverId + '/execute', {
|
fetch('/terminal/' + serverId + '/execute', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
'Accept': 'application/json',
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
'X-CSRF-Token': getCsrfToken(),
|
'X-CSRF-Token': getCsrfToken(),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user