credentials: 'include'

This commit is contained in:
Kyle Spearrin 2018-05-29 14:36:20 -04:00
parent 4c8f9c6b7c
commit c71b9703f3
1 changed files with 17 additions and 15 deletions

View File

@ -139,6 +139,7 @@ export class ApiService implements ApiServiceAbstraction {
const authHeader = await this.handleTokenState();
const response = await fetch(new Request(this.baseUrl + '/accounts/profile', {
cache: 'no-cache',
credentials: 'include',
headers: new Headers({
'Accept': 'application/json',
'Authorization': authHeader,
@ -418,6 +419,7 @@ export class ApiService implements ApiServiceAbstraction {
const response = await fetch(new Request(this.baseUrl + '/organizations/' + organizationId + '/import', {
body: JSON.stringify(request),
cache: 'no-cache',
credentials: 'include',
headers: new Headers({
'Accept': 'application/json',
'Authorization': authHeader,