Error 415 when posting to /login

A place for developers to advertise their enabled app and get help from other developers with the API.
Posts: 1
Joined: Fri Oct 05, 2018 2:50 pm

Error 415 when posting to /login

Postby Assyrial » Fri Oct 05, 2018 2:56 pm

Hi guys,

I'm making this side project but i'm getting this 'error 415 unsupported media type' everytime i post to I'm using fetch to post to it. My code:

let myHeaders = new Headers();

let myInit = { method: 'POST',
headers: myHeaders,
mode: 'no-cors',
body: JSON.stringify({

let myRequest = new Request('', myInit);

fetch(myRequest).then(function(response) {

Any of you had this problem or know what i'm doing wrong?