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

11 lines
241 B
JavaScript

'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;