react not fetching pdf document from spaces. cors error

Posted September 6, 2019 677 views
DigitalOceanUbuntu 18.04

React cors error when I try to fetch from spaces with a public URL.
I’ve set cors permissions on the space but it doesn’t work.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hey, @ayodejiod

I hope this is already sorted, but can you please paste the exact error message here as well? In this way it will be easier for everyone to come up with a solution or point you in the right direction.