{"id":11019,"date":"2017-09-12T15:07:16","date_gmt":"2017-09-12T14:07:16","guid":{"rendered":"https:\/\/help.instantatlas.com\/report-builder-agol\/?page_id=11019"},"modified":"2022-11-22T18:08:51","modified_gmt":"2022-11-22T18:08:51","slug":"cross-origin-resource-sharing-cors","status":"publish","type":"page","link":"https:\/\/help.reports.esriuk.com\/report-builder\/cross-origin-resource-sharing-cors\/","title":{"rendered":"Cross-Origin Resource Sharing (CORS)"},"content":{"rendered":"<p>By default, for security reasons, browsers enforce a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Same-origin_policy\" target=\"_blank\" rel=\"noopener\">same origin policy<\/a> where javascript can only access data from the same site (domain) that it is hosted on.\u00a0 In Report Builder for ArcGIS this causes issues as the code is hosted on www.reports.esriuk.com\u00a0but the data can come from ArcGIS Online, any other ArcGIS map servers or csv files.\u00a0 Modern browsers now support CORS which is a specification that enables data access across different domains.<\/p>\n<p>ArcGIS Online servers already have CORS enabled on them, but your own ArcGIS Servers or other ones may not. It is a simple process to do this on your own server as described on <a href=\"http:\/\/enable-cors.org\/\" target=\"_blank\" rel=\"noopener\">enable-cors.org<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, for security reasons, browsers enforce a same origin policy where javascript can only access data from the same site (domain) that it is hosted on.\u00a0 In Report Builder for ArcGIS this causes issues as the code is hosted on www.reports.esriuk.com\u00a0but the data can come from ArcGIS Online, any other ArcGIS map servers or [&hellip;]<\/p>\n","protected":false},"author":51,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-11019","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/pages\/11019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/comments?post=11019"}],"version-history":[{"count":0,"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/pages\/11019\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/media?parent=11019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}