I
I
Itvanya2015-05-16 09:11:21
JavaScript
Itvanya, 2015-05-16 09:11:21

Cross domain request with JS. How to implement without a server?

Guys, such a strange request from the customer: he wants to request data from yelp, using only the client part. Claims that someone has done this to him before, without even connecting any server scripts.
There was a question: is it possible to get access, say, to some JSON file on yelp with information about the company, if CORS is disabled? The client is a little bang-bang. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Евгений Петров, 2015-05-16
@Petroveg

Yelp поддерживает JSONP. Можете сами скрипт вставлять с указанием callback, как написано тут.
Можете использовать jQuery, там работа с JSONP также есть. Тут описан синтаксис вызова.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question