You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a partial code snippet from my APIClient class. I have this method 'run' triggered by a button click.
The code is working for the first 'apiURL' variable for not for the 2nd which is my own locally running API. I know my local API is fine because I can hit it with Postman and my iPhone (same network).
Do you have any clue what might be happening? Thanks!
Yes it was the https! The moment I used http & port 5074 (the http port for my ASP .NET server) it worked, I was quite surprised haha.
I don't understand though, I'm able to hit that https endpoint in other languages like Javascript (after I setup CORS on server side) no issue.
You still think the solution is set up SSL certificates on server side?
It depends on your use case. If you're developing and running a local server then SSL certificates might not be needed, but if you're sending things over internet, then it's probably very good practice to do so.
This is a partial code snippet from my APIClient class. I have this method 'run' triggered by a button click.
The code is working for the first 'apiURL' variable for not for the 2nd which is my own locally running API. I know my local API is fine because I can hit it with Postman and my iPhone (same network).
Do you have any clue what might be happening? Thanks!
The text was updated successfully, but these errors were encountered: