const userData = JSON.parse(localStorage.getItem('user')) ?? {}; const newsVersion = userData.newsVersion ?? null; fetch('/cms/api/blog/readed-news', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({version: newsVersion}) }).then();