1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
This commit is contained in:
Dan Finlay 2018-06-04 15:10:51 -07:00
parent 7b87afb4b7
commit 22754e3e1f
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ const ObservableStore = require('obs-store')
const normalizeAddress = require('eth-sig-util').normalize const normalizeAddress = require('eth-sig-util').normalize
const extend = require('xtend') const extend = require('xtend')
const notifier = require('../lib/bug-notifier') const notifier = require('../lib/bug-notifier')
const log = require('loglevel')
const { version } = require('../../manifest.json') const { version } = require('../../manifest.json')
class PreferencesController { class PreferencesController {

View File

@ -9,7 +9,7 @@ function postData(uri, data) {
body: JSON.stringify(data), // must match 'Content-Type' header body: JSON.stringify(data), // must match 'Content-Type' header
credentials: 'same-origin', // include, same-origin, *omit credentials: 'same-origin', // include, same-origin, *omit
headers: { headers: {
'content-type': 'application/json' 'content-type': 'application/json',
}, },
method: 'POST', // *GET, POST, PUT, DELETE, etc. method: 'POST', // *GET, POST, PUT, DELETE, etc.
mode: 'cors', // no-cors, cors, *same-origin mode: 'cors', // no-cors, cors, *same-origin