Skip to content

Docker Deployment works but PDF give "Failed to load PDF file". #1128

Discussion options

You must be logged in to vote

This happens primarily when CORS settings are not properly updated. You may find errors like below in your browser console -
Access to fetch at 'https://foo.nyc3.digitaloceanspaces.com/exported_file_4627_0000-00-00T00%3A45%3A43.344Z.pdf'
from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header
is present on the requested resource. If an opaque response serves your needs, set the request's mode to
'no-cors' to fetch the resource with CORS disabled.

You can find more details about configuring CORS below -

How to Configure CORS on DigitalOcean Spaces
Configuring cross-origin resource sharing on AWS S3

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andrew-opensignlabs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants