cyntler / cyntler/react-doc-viewer
CORS error when fetch image from S3
- Dominant language
- TypeScript
- Stars
- 481
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description



*note: ImageDisplay is my custom image display
I faced this issue while working in my own project although in S3 i set Accpet-Control-Allow-Origin to '*' (image 3). I found out that if i write a fetch method to that s3 url its still face the same error but when i set mode: 'no-cors' it success. Anyone can explain why for me :( is there any way to work around or to set no-cors mode to reac-doc-viewer?
This is my first time submit an issue so plz appologize for any mistakes, thank you guys a lot.
Contributor guide
No contributing guide indexed for this repository
Research direction
The report identifies a custom ImageDisplay, an S3 URL, and fetch behavior with and without mode: 'no-cors'; start by reproducing that request and tracing the viewer's image-loading path. Done means the S3 image behavior is supported or the required CORS configuration and workaround are clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100