#Getting an error when fetching data using an API endpoint

8 messages · Page 1 of 1 (latest)

scenic jewel
#

Hey, so earlier I was putting my AWS keys in frontend and was doing the data fetching from S3 on frontend.
But I have moved this to backend now. I have kept the processing and parsing of response on frontend though.
All of my API endpoints are working, but just 1 API is not working and I can not find the issue.

I have put the issue/pics here: 👇https://docs.google.com/document/d/1_FZKNGSbhy7YqWPSegMRekec4Xey9LNJyyx4cpvN888/edit?usp=sharing

random sonnetBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

daring flame
#

You need to enable cors from the backend.

scenic jewel
#

i have added:

CORS(app,origins=["http://localhost:3000","http://localhost:3000/"])

My fontend is on 3000 and backend is on 5000

nocturne rune
scenic jewel
#

just this one is giving me CORS error