From 8d2393230e08239ffa4ca2c04989991d18809631 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 13 Aug 2014 13:35:33 -0400 Subject: [PATCH] paypro: allow specific paypro headers. --- js/models/core/Wallet.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 71153f565..ff5db4ebd 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -804,6 +804,7 @@ Wallet.prototype.createPaymentTx = function(options, cb) { method: 'GET', url: options.uri, headers: { + 'Access-Control-Request-Headers': 'Content-Type,Content-Length,Accept', 'Accept': PayPro.PAYMENT_REQUEST_CONTENT_TYPE }, responseType: 'arraybuffer' @@ -1042,6 +1043,7 @@ Wallet.prototype.sendPaymentTx = function(ntxid, options, cb) { url: txp.merchant.pr.pd.payment_url, headers: { // BIP-71 + 'Access-Control-Request-Headers': 'Content-Type,Content-Length,Accept', 'Accept': PayPro.PAYMENT_ACK_CONTENT_TYPE, 'Content-Type': PayPro.PAYMENT_CONTENT_TYPE // XHR does not allow these: