Solved! Go to Solution.
Can you maybe advise how I can set this up using my own test solution bjorn?
// urlUtils.addProxyRule({ // proxyUrl: "/proxy", // urlPrefix: "test25.net" // });
csv = new CSVLayer("my-csv-map.csv", {
urlUtils.addProxyRule({ proxyUrl: "/proxy", urlPrefix: "test25.net" });
Is there a way to make it run without the proxy?
urlUtils.addProxyRule({ proxyUrl: "/proxy", urlPrefix: "test25.net" });
I don't have any proxy setup, I just replaced the url in the proxy with my address and hoped it would work!
Is there a way to make it run without the proxy?
However in the sample both the csv and the proxy are also on the same domain, earthquake.usgs.gov so I don't know why it need the proxy.
dawenx
Since you don't need a proxy, try to remove below codes:
Code:
urlUtils.addProxyRule({
proxyUrl: "/proxy",
urlPrefix: "test25.net"
});
bjorn
Not correct. In the sample, the CSV is on a different domain than the proxy and application.
Application: http://developers.arcgis.com/javascr...csv/index.html
Proxy: http://developers.arcgis.com/proxy
CSV: http://earthquake.usgs.gov/earthquak...y/2.5_week.csv
Can you maybe advise how I can set this up using my own test solution bjorn?
// urlUtils.addProxyRule({ // proxyUrl: "/proxy", // urlPrefix: "test25.net" // });
csv = new CSVLayer("my-csv-map.csv", {