Getting photo url in Django backend and displaying the photo in React frontend

I'm trying to get the url of my photos in the Django backend and send it to the react frontend using axios. I got the url printed in the console in the frontend but when I put the url as a src in an img tag, the image shows up as a blue question mark. What am I missing?

Initially it was a cors error, I changed my backend configurations and even disabled cors on safari but nothing worked. I made the photo shareable and tried hard coding the link and that also didn't work. I think I'm supposed to pass the oauth to the frontend as well but I'm not exactly sure how

Back to Top