I'm trying to fetch a very simple JSON from my private server from my storefront and I get this error when making an Ajax call.
I'm building a vehicle parts store and my scenario is like this:
The user enters its vehicle number --> Ajax call to my server where I have a list of 3.5 million records of vehicles numbers and their models --> Ajax return a simple JSON with vehicle model code --> redirect the user to a collection page with this model code as a tag filter.
What is the best way to do this scenario without facing the CORS error?
Solved! Go to the solution
This is an accepted solution.
Use CORS Anywhere. It's fantastic for this type of situation.
There is a demo plus further instructions in the link, additionally you can find some stuff on youtube about it.
Let me know how it goes.