1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #2412 from MetaMask/x-frame-options

mascara - set x-frame-options header to DENY
This commit is contained in:
kumavis 2017-10-20 11:04:11 -07:00 committed by GitHub
commit 2a18f732c7

View File

@ -17,7 +17,7 @@ function createMetamascaraServer () {
const server = express() const server = express()
// ui window // ui window
serveBundle(server, '/ui.js', uiBundle) 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')) server.use(express.static(__dirname + '/../../dist/chrome'))
// metamascara // metamascara
serveBundle(server, '/metamascara.js', metamascaraBundle) serveBundle(server, '/metamascara.js', metamascaraBundle)