Skip to content

Commit

Permalink
fix: remove no-cors mode, otherwise authentication token won't be sent
Browse files Browse the repository at this point in the history
  • Loading branch information
annarieger committed Dec 7, 2022
1 parent 3336dab commit 4989445
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/parser/SHOGunApplicationUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,6 @@ class SHOGunApplicationUtil<T extends Application, S extends Layer> {
URL.revokeObjectURL(this.objectUrls[src]);
}
const response = await fetch(src, {
mode: 'no-cors',
headers: useBearerToken ? {
...getBearerTokenHeader(this.client?.getKeycloak())
} : {}
Expand Down

0 comments on commit 4989445

Please sign in to comment.