include credentials when fetching blazor.boot.json to enable windows auth (#1200)

This commit is contained in:
Chris Ray 2018-08-22 12:57:29 -05:00 committed by Steve Sanderson
parent cf59ed94ad
commit 2eaa17f561
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
export async function fetchBootConfigAsync() {
// Later we might make the location of this configurable (e.g., as an attribute on the <script>
// element that's importing this file), but currently there isn't a use case for that.
const bootConfigResponse = await fetch('_framework/blazor.boot.json');
const bootConfigResponse = await fetch('_framework/blazor.boot.json', { method: 'Get', credentials: 'include' });
return bootConfigResponse.json() as Promise<BootJsonData>;
}