Can someone give an example of the yelp api with headers using an ajax call?

Can someone give an example of the yelp api with headers using an ajax call?
0.0 0

#1

Thanks. I have the key and stuff, but getting a no origin header error…https to https though


#2

You may want to look into node-yelp which abstracts this stuff away for you. I assume you’re getting this error because you’re trying to make a call to Yelp from your client, which is not how the API is meant to be consumed. Have all of the Yelp data come to the user via your own server, which will be more secure and easier for you to manage.


#3

I got it working , thanks