Sign in | Sign up

Referrer Filter Wildcard not Working (CORS)

Tagged:

Currently contains 2 posts

Avatar

November 16, 2019 19:54

harsimranb

I have set added wildcard * to the referred filters, but I’m still getting a CORS error in my AJAX request: Access to XMLHttpRequest at ‘https://www.nutritionix.com/track-api/v2/locations?north_east=40.808823,-73.9658566&south_west=40.8088437,-73.9658054’ from origin ‘<my domain>’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.

Am I missing something?

Avatar

November 17, 2019 05:57

harsimranb

Figured it out; I had incorrect request url. The correct request url is: https://trackapi.nutritionix.com/v2/locations

Reply to thread