Archive

Archive for February, 2022

A Guide to Solving Those Mystifying CORS Issues

February 7, 2022 Leave a comment

Imagine you’re building the UI. You need to connect to remote API to get or send some data. Everything works fine when you test your REST calls with curl, but when you implement them in the UI, it does not.

First, you check the code, looking for some typos or other mistakes —but everything seems to be fine. You change the URL to Google.com or something, and find out that the http call is working. The issue appears only when calling that specific API. But it works perfectly fine via command line or Postman. What’s going on then?

https://blog.container-solutions.com/a-guide-to-solving-those-mystifying-cors-issues

Categories: Interesting Tags: