cors on toggle

This commit is contained in:
Primakov Alexandr Alexandrovich 2023-11-06 21:51:02 +03:00
parent 0ef9958ebd
commit 4e77185a33

View File

@ -46,6 +46,9 @@ router.post('/toggle-like', (req, res) => {
charLikes[charId] = { likes: [id] } charLikes[charId] = { likes: [id] }
} }
res.set({
'Access-Control-Allow-Origin': 'http://admin.inno-js.ru',
})
res.send({ res.send({
likes: charLikes, likes: charLikes,
}) })