You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked if an issue is not listed in Known issues
I followed instructions in documentation written for my React-PDF version
I have checked if this bug is not already reported
If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo
Description
I'm setting 'Access-Control-Allow-Origin' header option in Document component to configure CORS, but it is not applied to preflight request so request fails.
PD: I saw other CORS-related issues. I know what CORS is and I have configured it in my server properly. Problem here is that httpHeaders are only applied to fetch and not to preflight request.
Before you start - checklist
Description
I'm setting 'Access-Control-Allow-Origin' header option in Document component to configure CORS, but it is not applied to preflight request so request fails.
PD: I saw other CORS-related issues. I know what CORS is and I have configured it in my server properly. Problem here is that httpHeaders are only applied to fetch and not to preflight request.
Steps to reproduce
Set a file link from a domain with CORS enabled
Expected behavior
Both fetch and preflight request have httpHeaders defined in component.
Actual behavior
Only fetch have httpHeaders defined in component.
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: