Closed caitreid closed 1 year ago
Hey Cait, can you share your recent frontend code so we can take a look at how you have it setup!
This turned out to be a Django-env issue. I was installing python packages inside the repo instead of at the top-level folder as we had done in class. Ashley pointed me in the right direction though!
What stack are you using?
(ex: MERN(mongoose + react), DR(django + react), PEN, etc.)
DR
What's the problem you're trying to solve?
Trying to test the connection between my REST API and Frontend
Post any code you think might be relevant (one fenced block per file)
React api/mangos.js
src/api/components/mangos/IndexMangos.js
Django
If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?
Getting CORS error at localhost:3000/mangos
But interestingly when I look at the server requests I see an "OPTIONS" request at /mangos
What is your best guess as to the source of the problem?
Something's messed up with the CORS settings
What things have you already tried to solve the problem?
Making sure I have the right python packages installed, making updates to settings.py to allow access to localhost & localhost:3000
Paste a link to your repository here https://github.com/caitreid/more-please_backend https://github.com/caitreid/more-please_frontend