block iframe
This commit is contained in:
parent
526f1889f9
commit
ed9f003d50
@ -4,6 +4,7 @@ const router = require('express').Router()
|
|||||||
|
|
||||||
// Add CORS headers
|
// Add CORS headers
|
||||||
router.use((req, res, next) => {
|
router.use((req, res, next) => {
|
||||||
|
res.header('X-Frame-Options', 'DENY')
|
||||||
res.header('Access-Control-Allow-Origin', '*')
|
res.header('Access-Control-Allow-Origin', '*')
|
||||||
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept')
|
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept')
|
||||||
next()
|
next()
|
||||||
|
Loading…
Reference in New Issue
Block a user