aboutsummaryrefslogtreecommitdiffstats
path: root/mascara
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-10-20 17:30:46 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-10-20 17:30:46 +0800
commit5c902423d9f20699c636d8291b6a5f5071aeae85 (patch)
tree022e4e74769ae516fb7a6df0553817d5a1e0d394 /mascara
parent87ad6a29f09763c1fa6910b36c946dc00dcf4b6c (diff)
downloadtangerine-wallet-browser-5c902423d9f20699c636d8291b6a5f5071aeae85.tar
tangerine-wallet-browser-5c902423d9f20699c636d8291b6a5f5071aeae85.tar.gz
tangerine-wallet-browser-5c902423d9f20699c636d8291b6a5f5071aeae85.tar.bz2
tangerine-wallet-browser-5c902423d9f20699c636d8291b6a5f5071aeae85.tar.lz
tangerine-wallet-browser-5c902423d9f20699c636d8291b6a5f5071aeae85.tar.xz
tangerine-wallet-browser-5c902423d9f20699c636d8291b6a5f5071aeae85.tar.zst
tangerine-wallet-browser-5c902423d9f20699c636d8291b6a5f5071aeae85.zip
mascara - set x-frame-options header to DENY
Diffstat (limited to 'mascara')
-rw-r--r--mascara/server/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/mascara/server/index.js b/mascara/server/index.js
index 12b527e5d..24739b43f 100644
--- a/mascara/server/index.js
+++ b/mascara/server/index.js
@@ -17,7 +17,7 @@ function createMetamascaraServer () {
const server = express()
// ui window
serveBundle(server, '/ui.js', uiBundle)
- server.use(express.static(__dirname + '/../ui/'))
+ server.use(express.static(__dirname + '/../ui/', { setHeaders: (res) => res.set('X-Frame-Options', 'DENY') }))
server.use(express.static(__dirname + '/../../dist/chrome'))
// metamascara
serveBundle(server, '/metamascara.js', metamascaraBundle)