Don't pass origin as an HTTP header

Requests with this nonstandard header are being blocked by CORS when
made against Parity.

Not sending it ought to fix #1779.
feature/default_network_editable
Adam Novak 7 years ago
parent 37979fca68
commit 8cc8fecdac
  1. 1
      app/scripts/metamask-controller.js

@ -221,7 +221,6 @@ module.exports = class MetamaskController extends EventEmitter {
eth_syncing: false, eth_syncing: false,
web3_clientVersion: `MetaMask/v${version}`, web3_clientVersion: `MetaMask/v${version}`,
}, },
originHttpHeaderKey: 'X-Metamask-Origin',
// account mgmt // account mgmt
getAccounts: (cb) => { getAccounts: (cb) => {
const isUnlocked = this.keyringController.memStore.getState().isUnlocked const isUnlocked = this.keyringController.memStore.getState().isUnlocked

Loading…
Cancel
Save