Problems hitting a localhost API #6722
Unanswered
miguelisidoro
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using React with Remix and I am using fetch to call an API that runs in my localhost (developed with C# and .NET 8).
The ports of my React application and web api are different but both run in localhost.
The code runs in a Remix (on server-side, i.e. node.js) and is the following:
I would say that normally there is a problem with the API (a http 500 error) but here the API is not being called.
Any ideias on how to solve this?
If I use axios, I get an error saying "self signed certificate" and a huge stack trace but with no additional details.
The axios code I tried is:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions