404 When sending request to seperate backend, but works in postman/browser
Unanswered
Netherland Dwarf posted this in #help-forum
Netherland DwarfOP
Hi, I'm working on a project in nextjs, I have my backend in express and frontend is nextjs. I'm trying to send a simple get request to the backend which is on port 5000 from the frontend which is on 3000. But it is 404 when i run a GET through axios. I thought it might be a cors issue but I made sure to at my frontend url to cors. I've been trying to find a solution for hours now and Im really lost.
It works fine when i send the request in postman or view it in my browser but when i call it from my frontend its not working.
Could someone help? I can send my code if you want. Forgive me if this is dumb im kinda new.
It works fine when i send the request in postman or view it in my browser but when i call it from my frontend its not working.
Could someone help? I can send my code if you want. Forgive me if this is dumb im kinda new.
1 Reply
Original message was deleted
Asian black bear
Our forum isn't a place for private, off-platform debugging like through AnyDesk or similar tools. All help and solutions should stay public so they benefit future readers and maintain transparency. If someone asks to take things private without sharing a clear, public solution, it's a red flag - potentially a scam. Always share code and context here where everyone can see and contribute.