re-enabled x-metamask-origin for mascara

feature/default_network_editable
frankiebee 7 years ago
parent 4979f5902f
commit b24e16d346
  1. 2
      app/scripts/metamask-controller.js
  2. 4
      app/scripts/platforms/extension.js

@ -196,7 +196,7 @@ module.exports = class MetamaskController extends EventEmitter {
},
// rpc data source
rpcUrl: this.networkController.getCurrentRpcAddress(),
originHttpHeaderKey: this.platform.isExtension ? 'X-Metamask-Origin' : undefined,
originHttpHeaderKey: 'X-Metamask-Origin',
// account mgmt
getAccounts: (cb) => {
const isUnlocked = this.keyringController.memStore.getState().isUnlocked

@ -5,10 +5,6 @@ class ExtensionPlatform {
//
// Public
//
get isExtension () {
return true
}
reload () {
extension.runtime.reload()
}

Loading…
Cancel
Save