Copy link to clipboard
Copied
Hello,
I have a strange file preview error I do not understand.
Why does the 2nd one work and the 3rd one not?
Copy link to clipboard
Copied
Hi there,
I think this has to do with CORS. When I open your "external-not-working" link, in the browser console I see this error:
Access to XMLHttpRequest at 'https://marketingguys.com/wp-content/uploads/2022/07/whitepaper-marketing-sales-alignment.pdf' from origin 'https://marketing.marketingguys.nl' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
There are browser add-ons that can help you get around such CORS errors.
Copy link to clipboard
Copied
Hi Kyle,
Thanks for the reply. I see the CORS error. But why does it appear on https://marketing.marketingguys.nl/acton/media/7349/external-not-working
and not on below page?
https://marketing.marketingguys.nl/acton/media/7349/external-hosted-pdf
Both directing to PDF file which is hosted somewhere else.
Very strange.
Copy link to clipboard
Copied
The difference is likely that the one is hosted on Adobe domain, whereas the other is your personal webserver. You may be able to configure your server to allow this type of cross-domain request.