diff --git a/src/routes/index.ts b/src/routes/index.ts index 90ac5f7..1003808 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -46,6 +46,9 @@ router.post('/toggle-like', (req, res) => { charLikes[charId] = { likes: [id] } } + res.set({ + 'Access-Control-Allow-Origin': 'http://admin.inno-js.ru', + }) res.send({ likes: charLikes, })