Merge pull request #2478 from MetaMask/mascaraHeadersFix

Fix X-Frame-Options for mascara
feature/default_network_editable
Frankie 7 years ago committed by GitHub
commit bba2980d0a
  1. 2
      mascara/server/index.js

@ -18,7 +18,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(path.join(__dirname, '/../ui/', { setHeaders: (res) => res.set('X-Frame-Options', 'DENY') }))) server.use(express.static(path.join(__dirname, '/../ui/'), { setHeaders: (res) => res.set('X-Frame-Options', 'DENY') }))
server.use(express.static(path.join(__dirname, '/../../dist/chrome'))) server.use(express.static(path.join(__dirname, '/../../dist/chrome')))
// metamascara // metamascara
serveBundle(server, '/metamascara.js', metamascaraBundle) serveBundle(server, '/metamascara.js', metamascaraBundle)

Loading…
Cancel
Save