1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Added withCredentials parameter and passing it to xhr requests

This commit is contained in:
terje.kristiansen 2014-01-15 09:57:17 +01:00
parent 4d01ff4079
commit 08737375f8
5 changed files with 10 additions and 2 deletions

View file

@ -94,7 +94,8 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
}
var networkManager = new NetworkManager(source.url, {
httpHeaders: source.httpHeaders
httpHeaders: source.httpHeaders,
withCredentials: source.withCredentials
});
var fullRequestXhrId = networkManager.requestFull({
onHeadersReceived: function onHeadersReceived() {