Open ghost opened 1 year ago
Hi! It's a pdfmake issue, but you can try to disable fontLayoutCache option.
Thanks for your answer.
Unfortunately that does not work. I guess I have to set this option here, correct?
const pdfMake = usePDF({
autoInstallVFS: true,
fontLayoutCache: false,
});
The fontLayoutCache option does not work. However, we just changed the font's URL to load a different version every time like this:
http://SERVER:8001/fonts/some_font.otf?v=1234
Hello
We're using multiple instances (web applications) running on different ports generating some PDFs with vue-pdfmake.
Unfortunately on Chrome and Edge, XMLHttpRequests are blocked by CORS policy because it caches the origin header on an instance.
For example:
Access to XMLHttpRequest at 'http://SERVER:8001/fonts/some_font.otf' from origin 'http://SERVER:8031' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'http://SERVER:8030' that is not equal to the supplied origin.
Is there a way to disable caching header data on XMLHttpRequests? As soon as I delete browser cache or if I'm using a private session, it works again.
I'm using vue 3.2.13 with vue3-pdfmake 2.2.0.
Thanks and regards