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

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.
This commit is contained in:
Adam Novak 2017-10-01 18:55:52 -07:00
parent 37979fca68
commit 8cc8fecdac

View File

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