mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
credentials: 'include'
This commit is contained in:
@@ -139,6 +139,7 @@ export class ApiService implements ApiServiceAbstraction {
|
|||||||
const authHeader = await this.handleTokenState();
|
const authHeader = await this.handleTokenState();
|
||||||
const response = await fetch(new Request(this.baseUrl + '/accounts/profile', {
|
const response = await fetch(new Request(this.baseUrl + '/accounts/profile', {
|
||||||
cache: 'no-cache',
|
cache: 'no-cache',
|
||||||
|
credentials: 'include',
|
||||||
headers: new Headers({
|
headers: new Headers({
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
'Authorization': authHeader,
|
'Authorization': authHeader,
|
||||||
@@ -418,6 +419,7 @@ export class ApiService implements ApiServiceAbstraction {
|
|||||||
const response = await fetch(new Request(this.baseUrl + '/organizations/' + organizationId + '/import', {
|
const response = await fetch(new Request(this.baseUrl + '/organizations/' + organizationId + '/import', {
|
||||||
body: JSON.stringify(request),
|
body: JSON.stringify(request),
|
||||||
cache: 'no-cache',
|
cache: 'no-cache',
|
||||||
|
credentials: 'include',
|
||||||
headers: new Headers({
|
headers: new Headers({
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
'Authorization': authHeader,
|
'Authorization': authHeader,
|
||||||
|
|||||||
Reference in New Issue
Block a user