Skip to content

Commit

Permalink
Ensure cookies get sent in request headers (#1069)
Browse files Browse the repository at this point in the history
* Add "withCredentials" to the AJAX call to make sure cookies get sent
* correctly
  • Loading branch information
rizhang authored and Matt Kendall committed Mar 23, 2017
1 parent 871d6f6 commit cb6cd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/sharethrough.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var SharethroughAdapter = function SharethroughAdapter() {
const bidRequest = bids[i];
str.placementCodeSet[bidRequest.placementCode] = bidRequest;
const scriptUrl = _buildSharethroughCall(bidRequest);
str.ajax(scriptUrl, $$PREBID_GLOBAL$$.strcallback);
str.ajax(scriptUrl, $$PREBID_GLOBAL$$.strcallback, undefined, {withCredentials: true});
}
}

Expand Down

0 comments on commit cb6cd4b

Please sign in to comment.