{"id":851,"date":"2013-01-10T14:19:36","date_gmt":"2013-01-10T14:19:36","guid":{"rendered":"https:\/\/ibex.tech\/javascript\/?p=851"},"modified":"2022-02-17T07:14:46","modified_gmt":"2022-02-17T07:14:46","slug":"cross-domain-requests","status":"publish","type":"post","link":"https:\/\/ibex.tech\/javascript\/jquery-mobile\/ajax\/cross-domain-requests","title":{"rendered":"Cross-domain requests"},"content":{"rendered":"<p>\nIf a page is on domain_a.com, you can&rsquo;t load a page using AJAX from domain_b.com (the framework automatically uses a full HTTP request instead).\n<\/p>\n<h4>\nEnabling Cross Domain Requests via AJAX<br \/>\n<\/h4>\n<p>\nIf you are creating an offline application or a some sort of special hybrid solution you may be loading pages through the file:\/\/protocol (local files), so if want to load external pages from the Web you need to allow it by using $.mobile.allowCrossDomainPages = true\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If a page is on domain_a.com, you can&rsquo;t load a page using AJAX from domain_b.com (the framework automatically uses a full HTTP request instead). Enabling Cross Domain Requests via AJAX If you are creating an offline application or a some sort of special hybrid solution you may be loading pages through the file:\/\/protocol (local files), [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92],"tags":[],"class_list":["post-851","post","type-post","status-publish","format-standard","hentry","category-ajax"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/comments?post=851"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/851\/revisions"}],"predecessor-version":[{"id":1369,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/851\/revisions\/1369"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/media?parent=851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/categories?post=851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/tags?post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}