diff --git a/package.json b/package.json index 9315a36..a5344f5 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "license": "BSD", "dependencies": { - "request": "~2.34.0", + "request": "~2.51.0", "underscore": "~1.6.0" }, "devDependencies": { diff --git a/yql.js b/yql.js index 399082b..30130bc 100644 --- a/yql.js +++ b/yql.js @@ -195,7 +195,8 @@ YQL.prototype.exec = function (callback) { headers: this.config.headers, method: 'GET', timeout: parseInt(this.config.timeout, 10), - url: url + url: url, + withCredentials: false, // needed for CORS }; var handler = this._handleResponse.bind(this, callback);