fix: CORS issue for PDF download
CORS requests would fail after a cached no-CORS request of the same urls
This commit is contained in:
parent
29a09c2596
commit
41f5286d48
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@ const readData = (blob: Blob, type: DataResultType): Promise<string> => {
|
|||
}
|
||||
|
||||
const fetchBlob = async (imgUrl: string): Promise<Blob> => {
|
||||
const r = await fetch(imgUrl)
|
||||
const r = await fetch(imgUrl, {
|
||||
cache: 'no-cache',
|
||||
})
|
||||
return r.blob()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue