提交 4ffeba3c 编写于 作者: M Matt Zabriskie

Merge pull request #168 from samjulien/master

Adding check for withCredentials in XHR adapter (#138)
......@@ -88,7 +88,7 @@ module.exports = function xhrAdapter(resolve, reject, config) {
var cookies = require('./../helpers/cookies');
// Add xsrf header
var xsrfValue = isURLSameOrigin(config.url) ?
var xsrfValue = config.withCredentials || isURLSameOrigin(config.url) ?
cookies.read(config.xsrfCookieName || defaults.xsrfCookieName) :
undefined;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册