UNPKG
lusca
Version:
latest (1.7.0)
1.7.0
1.6.1
1.6.0
1.5.2
1.5.1
1.5.0
1.5.0--alpha
1.4.1
1.4.0
1.3.0
1.2.0
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
0.1.2
0.1.1
Application security for express.
github.com/krakenjs/lusca
krakenjs/lusca
lusca
/
lib
/
xframes.js
14 lines
(12 loc)
•
308 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
;
/** * Xframes * https://www.owasp.org/index.php/Clickjacking *
@param
{
String
} value The XFRAME header value, e.g. DENY, SAMEORIGIN. */
module
.
exports
=
function
(
value
) {
return
function
xframe
(
req, res, next
) { res.
header
(
'x-frame-options'
, value);
next
(); }; };