matrix-public-archive/server/middleware/prevent-clickjacking-middle...

11 lines
241 B
JavaScript
Raw Normal View History

'use strict';
// Don't allow others to iframe embed which can lead to clickjacking
function preventClickjackingMiddleware(req, res, next) {
res.set('X-Frame-Options', 'DENY');
next();
}
module.exports = preventClickjackingMiddleware;