Add withCredentials: true to the SDK request in DDC web compilation

Bug:
Change-Id: Ica9e3e9f6160562090a62f584a5c9b2d851edf36
Reviewed-on: https://dart-review.googlesource.com/30628
Reviewed-by: Jacob Richman <jacobr@google.com>
Commit-Queue: Alan Knight <alanknight@google.com>
This commit is contained in:
Alan Knight 2017-12-20 19:05:42 +00:00 committed by commit-bot@chromium.org
parent c8ae685d0c
commit 19ac7a0df3

View file

@ -100,7 +100,9 @@ class WebCompileCommand extends Command {
try {
sdkRequest = await HttpRequest.request(sdkUrl,
responseType: "arraybuffer", mimeType: "application/octet-stream");
responseType: "arraybuffer",
mimeType: "application/octet-stream",
withCredentials: true);
} catch (error) {
onError('Dart sdk summaries failed to load: $error. url: $sdkUrl');
return null;