1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 22:38:30 +09:00

CLIページにおいてAPIリクエスト時にContent-Typeヘッダを付与するように変更 (#9887)

This commit is contained in:
RyotaK 2023-02-12 08:21:13 +09:00 committed by GitHub
parent f6f269194f
commit ef860a8f84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',