mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-05 00:03:51 +09:00
CLIページにおいてAPIリクエスト時にContent-Typeヘッダを付与するように変更 (#9887)
This commit is contained in:
@ -11,6 +11,9 @@ window.onload = async () => {
|
||||
|
||||
// Send request
|
||||
fetch(endpoint.indexOf('://') > -1 ? endpoint : `/api/${endpoint}`, {
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
method: 'POST',
|
||||
body: JSON.stringify(data),
|
||||
credentials: 'omit',
|
||||
|
Reference in New Issue
Block a user