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

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

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.

1 Like

I got it working , thanks