cors header on likes
This commit is contained in:
parent
db4d1980a8
commit
25b3320665
@ -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,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user