Существует ли XDomainRequest, эквивалентный в Firefox?

Этот вопрос задали прежде здесь .

РЕДАКТИРОВАНИЕ: , Если необходимо иметь дело с изворотливыми веб-приложениями, необходимо, вероятно, испытать , механизируют . Это - большая библиотека, которая моделирует веб-браузер. Можно управлять перенаправлением, cookie, обновлениями страницы... Если веб-сайт не положится [в большой степени] на JavaScript, то Вы будете ладить очень приятно с, механизируют.

12
задан hippietrail 13 March 2012 в 18:30
поделиться

1 ответ

The XDomainRequest object in Internet Explorer 8 is a proprietary method for requesting resources which are outside the "same-origin policy."

Firefox 3.5+ and Safari 4+ allow cross-domain requests through the XMLHTTPRequest object. User agents that support XMLHTTPRequest Level 2 must have Cross-Origin Resource Sharing support (CORS), which allows retrieving the resource IF the resource announces that it can be requested from other domains.

Keep in mind that the resource must declare itself as a cross-origin resource before a compliant user agent will retrieve the resource.

More info here: http://www.w3.org/TR/cors/ and at /TR/XMLHttpRequest2 on the W3C website.

21
ответ дан 2 December 2019 в 06:45
поделиться
Другие вопросы по тегам:

Похожие вопросы: