Remove credentials from xhr request. Add techdocs-backend changeset

This commit is contained in:
Erik Larsson
2021-03-01 12:45:18 +01:00
parent 74534a0f8c
commit 52b5bc3e27
3 changed files with 6 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs-backend': patch
---
Forward authorization header on backend request if present
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/plugin-techdocs': minor
---
Add authorization header on techdocs api requests
Add authorization header on techdocs api requests. Breaking change as clients now needs the Identity API.
-1
View File
@@ -171,7 +171,6 @@ export class TechDocsStorageApi implements TechDocsStorage {
const request = await fetch(
`${url.endsWith('/') ? url : `${url}/`}index.html`,
{
credentials: 'include',
headers: token ? { Authorization: `Bearer ${token}` } : {},
},
);