Skip to content

Commit 0d91ea8

Browse files
committed
set withCredentials: false to avoid CORS wildcard error
1 parent af476b5 commit 0d91ea8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

yql.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ YQL.prototype.exec = function (callback) {
195195
headers: this.config.headers,
196196
method: 'GET',
197197
timeout: parseInt(this.config.timeout, 10),
198-
url: url
198+
url: url,
199+
withCredentials: false, // needed for CORS
199200
};
200201

201202
var handler = this._handleResponse.bind(this, callback);

0 commit comments

Comments
 (0)