1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

credentials: 'include'

This commit is contained in:
Kyle Spearrin
2018-05-29 14:36:20 -04:00
parent 4c8f9c6b7c
commit c71b9703f3

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,