Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Commuter Rail JSON not available via JavaScript

Received: by 10.50.217.232 with SMTP id pb8mr4953igc.4.1330041845144;
        Thu, 23 Feb 2012 16:04:05 -0800 (PST)
X-BeenThere: massdotdevelopers@googlegroups.com
Received: by 10.231.28.130 with SMTP id m2ls2016551ibc.5.gmail; Thu, 23 Feb
 2012 16:04:03 -0800 (PST)
Received: by 10.50.10.137 with SMTP id i9mr9889igb.2.1330041843654;
        Thu, 23 Feb 2012 16:04:03 -0800 (PST)
Received: by 10.50.209.5 with SMTP id mi5msigc;
        Wed, 22 Feb 2012 06:54:14 -0800 (PST)
Received: by 10.52.35.82 with SMTP id f18mr3049826vdj.10.1329922450303;
        Wed, 22 Feb 2012 06:54:10 -0800 (PST)
Date: Wed, 22 Feb 2012 06:54:09 -0800 (PST)
From: Alan <alt...@gmail.com>
To: massdotdevelopers@googlegroups.com
Message-ID: <30608488.142.1329922449667.JavaMail.geo-discussion-forums@vbcu2>
Subject: Commuter Rail JSON not available via JavaScript
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_140_15675337.1329922449666"

------=_Part_140_15675337.1329922449666
Content-Type: multipart/alternative; 
	boundary="----=_Part_141_19557105.1329922449666"

------=_Part_141_19557105.1329922449666
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable



The Commuter Rail data (e.g.=20
http://developer.mbta.com/lib/RTCR/RailLine_9.json) appear to be available=
=20
neither via either JSONP <http://en.wikipedia.org/wiki/JSONP> nor CORS<http=
://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing>,=20
making it impossible to access this data via JavaScript.  If you=E2=80=99d =
like to=20
make this data available to browser applications using JavaScript, you will=
=20
need to add CORS support.

Please make the JSON available via CORS by sending the HTTP response header=
:
Access-Control-Allow-Origin: *

This site details how to do so for IIS6: http://enable-cors.org/#how-iis6.

Thanks in advance,
alan


------=_Part_141_19557105.1329922449666
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<p class=3D"MsoNormal">The Commuter Rail data (e.g. <a href=3D"http://devel=
oper.mbta.com/lib/RTCR/RailLine_9.json">http://developer.mbta.com/lib/RTCR/=
RailLine_9.json</a>)
appear to be available neither via either <a href=3D"http://en.wikipedia.or=
g/wiki/JSONP">JSONP</a> nor <a href=3D"http://en.wikipedia.org/wiki/Cross-O=
rigin_Resource_Sharing">CORS</a>,
making it impossible to access this data via JavaScript.&nbsp; If you=E2=80=
=99d like to
make this data available to browser applications using JavaScript, you will
need to add CORS support.</p><p class=3D"MsoNormal">Please make the JSON av=
ailable via CORS by sending the HTTP
response header:<br><span style=3D"background-color: white; color: rgb(51, =
51, 51); font-family: 'Courier New'; font-size: 10.5pt; ">Access-Control-Al=
low-Origin: *</span></p><p class=3D"MsoNormal">This site details how to do =
so for IIS6: <a href=3D"http://enable-cors.org/#how-iis6">http://enable-cor=
s.org/#how-iis6</a>.</p>

<p class=3D"MsoNormal">Thanks in advance,<br>alan</p><p class=3D"MsoNormal"=
><o:p></o:p></p>
------=_Part_141_19557105.1329922449666--

------=_Part_140_15675337.1329922449666--