repo.or.cz
/
gitter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'hotfix/21.56.9' into master
[gitter.git]
/
server
/
web
/
middlewares
/
prevent-clickjacking.js
blob
4e95ba759410257e99073fc75f89dd708cc96834
1
'use strict'
;
2
3
// Don't allow others to iframe embed which can lead to clickjacking
4
function
preventClickjackingMiddleware
(
req
,
res
,
next
) {
5
res
.
set
(
'X-Frame-Options'
,
'DENY'
);
6
7
next
();
8
}
9
10
module
.
exports
=
preventClickjackingMiddleware
;