cors on toggle
This commit is contained in:
parent
0ef9958ebd
commit
4e77185a33
@ -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,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user