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
Hi,
I am a graduate student enrolled in a Web-Mapping Course. As part of my course syllabus, I am supposed to submit a final project. I want to use the Yelp Fusion API to display local businesses within a 0.25 mile radius from train stations I have added as a GeoJSON. I have successfully used your API in Postman to retrieve data on businesses to test if my access token works, however, when I try to use ajax to get businesses in my JavaScript I get this error.
Here is a sample of my code using ajax.
Is there any reason why I am getting this issue? I read various forums and I keep hearing the term CORS, which I somewhat understand what it mean, and not being able to send my request because my map comes from a local server, my C drive. Is there a way around this? I just want to use this API for my class and my project is due Thursday. I may need to change it if I can't resolve this issue by Wednesday morning
P.S. this is my first class using a programming language. While I do enjoy it and want to learn other languages, I may not be as familiar with terms or techniques as others here.
Thanks!
The text was updated successfully, but these errors were encountered:
Hey @dab65068! At the moment, the API does not fulfill any requests that come in through AJAX. CORS is a concept that covers making requests across different sites, and we currently have that completely disabled for the API. Sorry about that!
Hi,
I am a graduate student enrolled in a Web-Mapping Course. As part of my course syllabus, I am supposed to submit a final project. I want to use the Yelp Fusion API to display local businesses within a 0.25 mile radius from train stations I have added as a GeoJSON. I have successfully used your API in Postman to retrieve data on businesses to test if my access token works, however, when I try to use ajax to get businesses in my JavaScript I get this error.
Here is a sample of my code using ajax.
Is there any reason why I am getting this issue? I read various forums and I keep hearing the term CORS, which I somewhat understand what it mean, and not being able to send my request because my map comes from a local server, my C drive. Is there a way around this? I just want to use this API for my class and my project is due Thursday. I may need to change it if I can't resolve this issue by Wednesday morning
P.S. this is my first class using a programming language. While I do enjoy it and want to learn other languages, I may not be as familiar with terms or techniques as others here.
Thanks!
The text was updated successfully, but these errors were encountered: