406 (Not Acceptable)

fetch('https://gorest.co.in/public/v2/users', { method: 'POST', body: JSON.stringify({ name: 'Ярослав Милошевич', email: 'dogdog@dog.dog', gender: 'male', status: 'active', }), // Добавление заголовков запроса headers: { Authorization: 'Bearer 778c14f1405c73e6746b105ebe58639338d96c9e56e47ee38d721e9df4b3fe1d', 'Content-Type': 'appliocation-json', } })

should be "Content-Type:application/json" not 'Content-Type': 'appliocation-json'

{}


Little markdown supported