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
|
@ -25,7 +25,9 @@ const readData = (blob: Blob, type: DataResultType): Promise<string> => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchBlob = async (imgUrl: string): Promise<Blob> => {
|
const fetchBlob = async (imgUrl: string): Promise<Blob> => {
|
||||||
const r = await fetch(imgUrl)
|
const r = await fetch(imgUrl, {
|
||||||
|
cache: 'no-cache',
|
||||||
|
})
|
||||||
return r.blob()
|
return r.blob()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue