const options = {method: 'POST', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://spaces.nexudus.com/api/public/community/board/threads/{threadId}/like', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));