From 5c3b144a649ec380d855c823ef130273b12a3232 Mon Sep 17 00:00:00 2001 From: Vineet Hawal Date: Sun, 22 Nov 2015 01:27:34 +0530 Subject: [PATCH] import isURLSameOrigin at top --- lib/adapters/xhr.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/adapters/xhr.js b/lib/adapters/xhr.js index 090f469..c9bf9c0 100644 --- a/lib/adapters/xhr.js +++ b/lib/adapters/xhr.js @@ -42,7 +42,7 @@ module.exports = function xhrAdapter(resolve, reject, config) { // Create the request var request = new adapter('Microsoft.XMLHTTP'); request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true); - + console.log(request); // Set the request timeout in MS request.timeout = config.timeout; @@ -78,7 +78,6 @@ module.exports = function xhrAdapter(resolve, reject, config) { // Specifically not if we're in a web worker, or react-native. if (utils.isStandardBrowserEnv()) { var cookies = require('./../helpers/cookies'); - var isURLSameOrigin = require('./../helpers/isURLSameOrigin'); // Add xsrf header var xsrfValue = isURLSameOrigin(config.url) ? -- GitLab