fix: add missing content-type header (#887)

* fix: add missing headers when commenting on an issue

* fix: more missing content-type headers in post requests
This commit is contained in:
Fallenbagel
2024-07-24 19:34:54 +05:00
committed by GitHub
parent 5cc4389825
commit 2be9c7dcc1
4 changed files with 15 additions and 0 deletions

View File

@@ -45,6 +45,9 @@ const Login = () => {
try {
const res = await fetch('/api/v1/auth/plex', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ authToken }),
});
if (!res.ok) throw new Error();