cors header on likes

This commit is contained in:
Primakov Alexandr Alexandrovich 2023-10-31 18:24:51 +03:00
parent db4d1980a8
commit 25b3320665

View File

@ -21,6 +21,9 @@ router.use('/v1/drafts', jwtMiddlevare, draftsRouter)
const charLikes = {} const charLikes = {}
router.get('/likes', (req, res) => { router.get('/likes', (req, res) => {
res.set({
'Access-Control-Allow-Origin': 'http://admin.inno-js.ru',
})
res.send({ res.send({
likes: charLikes, likes: charLikes,
}) })