<div dir="ltr">Hi Pierre,<div><br></div><div>Any update on CORS errors on the TM?  Still getting Cross Origin Errors when I make ajax requests.</div><div><br></div><div>This would definitely be useful, but there are also workarounds I can use until this is figured out.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 17, 2015 at 1:06 PM, James Conkling <span dir="ltr"><<a href="mailto:james.lane.conkling@gmail.com" target="_blank">james.lane.conkling@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Threw together some test code: <a href="http://plnkr.co/edit/MkrooDeQPhmADv4CrnTY?p=preview" target="_blank">http://plnkr.co/edit/MkrooDeQPhmADv4CrnTY?p=preview</a>.  Look at the browser console for success/error messages<div><br></div><div>Can confirm that using the second url (which points to '<a href="http://tasks.hotosm.org/project/920/tasks.json" target="_blank">http://tasks.hotosm.org/project/920/tasks.json</a>') throws a CORS error, while using the first url (which points to another CORS enabled project server) doesn't throw an error.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 17, 2015 at 11:58 AM, Pierre GIRAUD <span dir="ltr"><<a href="mailto:pierre.giraud@gmail.com" target="_blank">pierre.giraud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is supposed to land on the following code:<br>
<a href="https://github.com/hotosm/osm-tasking-manager2/blob/master/osmtm/views/project.py#L381" target="_blank">https://github.com/hotosm/osm-tasking-manager2/blob/master/osmtm/views/project.py#L381</a><br>
<br>
Do you have any simple code to test this against? (I'm a bit lazy)<br>
<br>
Thanks<br>
<br>
<br>
On Tue, Mar 17, 2015 at 4:53 PM, James Conkling<br>
<div><div><<a href="mailto:james.lane.conkling@gmail.com" target="_blank">james.lane.conkling@gmail.com</a>> wrote:<br>
> Hmmm.  I'm still getting a CORS error when I send an ajax request to<br>
> <a href="http://tasks.hotosm.org/project/920/tasks.json" target="_blank">http://tasks.hotosm.org/project/920/tasks.json</a>.<br>
><br>
> On Tue, Mar 17, 2015 at 4:37 AM, Pierre GIRAUD <<a href="mailto:pierre.giraud@gmail.com" target="_blank">pierre.giraud@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Sorry for the delayed answer.<br>
>> All the API requests should be CORS enabled. Well, as soon as they use<br>
>> XHR.<br>
>><br>
>> On Mon, Mar 9, 2015 at 6:48 PM, Mikel Maron <<a href="mailto:mikel.maron@gmail.com" target="_blank">mikel.maron@gmail.com</a>> wrote:<br>
>> > Huh I had thought that CORS was enabled for the OSMTM api ... is that<br>
>> > not<br>
>> > the case Drazen or Pierre?<br>
>> ><br>
>> > * Mikel Maron * <a href="tel:%2B14152835207" value="+14152835207" target="_blank">+14152835207</a> @mikel s:mikelmaron<br>
>> ><br>
>> ><br>
>> > On Monday, March 9, 2015 1:36 PM, James Conkling<br>
>> > <<a href="mailto:james.lane.conkling@gmail.com" target="_blank">james.lane.conkling@gmail.com</a>> wrote:<br>
>> ><br>
>> ><br>
>> ><br>
>> > Hey Mikel et al,<br>
>> ><br>
>> > Glad to see there's work being done on a TM API.  I've been trying to<br>
>> > load<br>
>> > the tasks.json file into an external app so I can monitor the progress<br>
>> > of<br>
>> > some HOT projects (the API docs suggest this should be exposed now, even<br>
>> > though the rest of the API has not yet been implemented), but am running<br>
>> > into issues with Cross Origin requests--requesting as jsonp hasn't<br>
>> > worked<br>
>> > either.  Am I barking up the wrong tree here, or is this something I<br>
>> > should<br>
>> > be able to do at this point?  (code is here, in case anyone's<br>
>> > interested)<br>
>> ><br>
>> > On Sun, Mar 8, 2015 at 7:59 PM, Mikel Maron <<a href="mailto:mikel.maron@gmail.com" target="_blank">mikel.maron@gmail.com</a>><br>
>> > wrote:<br>
>> ><br>
>> > Sam<br>
>> ><br>
>> > Some additions to the OSMTM API are in staging, and hopefully will<br>
>> > deploy<br>
>> > soon. Once live, this would allow to grab data on a list of projects.<br>
>> > <a href="https://github.com/hotosm/osm-tasking-manager2/wiki/API" target="_blank">https://github.com/hotosm/osm-tasking-manager2/wiki/API</a> has a few<br>
>> > details.<br>
>> ><br>
>> > -Mikel<br>
>> ><br>
>> > * Mikel Maron * <a href="tel:%2B14152835207" value="+14152835207" target="_blank">+14152835207</a> @mikel s:mikelmaron<br>
>> ><br>
>> ><br>
>> > On Friday, March 6, 2015 1:52 PM, Sam Libby <<a href="mailto:SLibby@esri.com" target="_blank">SLibby@esri.com</a>> wrote:<br>
>> ><br>
>> ><br>
>> ><br>
>> > Hi all, wanted to share this great visualization of ten years of OSM<br>
>> > edits:<br>
>> > <a href="https://www.mapbox.com/ten-years-openstreetmap/" target="_blank">https://www.mapbox.com/ten-years-openstreetmap/</a> in case people had not<br>
>> > seen<br>
>> > it on social media.<br>
>> ><br>
>> > A question  for the group – is there an available dataset/API in json,<br>
>> > geojson, shapefile, etc that shows the locations of all historical and<br>
>> > current HOT tasks – ideally with dates of creation? I know it’s<br>
>> > available<br>
>> > per-task as geojson but thought it might be available as a big chunk as<br>
>> > well.  I think it would be a really interesting overlay to add to the<br>
>> > 10-year map or other OSM visualizations – especially in W. Africa during<br>
>> > the<br>
>> > Ebola epidemic, you can clearly see in the time-based visualization<br>
>> > where<br>
>> > there were big impacts from the HOT community.<br>
>> ><br>
>> > Thanks,<br>
>> > Sam<br>
>> ><br>
>> > _______________________________________________<br>
>> > HOT mailing list<br>
>> > <a href="mailto:HOT@openstreetmap.org" target="_blank">HOT@openstreetmap.org</a><br>
>> > <a href="https://lists.openstreetmap.org/listinfo/hot" target="_blank">https://lists.openstreetmap.org/listinfo/hot</a><br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > HOT mailing list<br>
>> > <a href="mailto:HOT@openstreetmap.org" target="_blank">HOT@openstreetmap.org</a><br>
>> > <a href="https://lists.openstreetmap.org/listinfo/hot" target="_blank">https://lists.openstreetmap.org/listinfo/hot</a><br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > HOT mailing list<br>
>> > <a href="mailto:HOT@openstreetmap.org" target="_blank">HOT@openstreetmap.org</a><br>
>> > <a href="https://lists.openstreetmap.org/listinfo/hot" target="_blank">https://lists.openstreetmap.org/listinfo/hot</a><br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > HOT mailing list<br>
>> > <a href="mailto:HOT@openstreetmap.org" target="_blank">HOT@openstreetmap.org</a><br>
>> > <a href="https://lists.openstreetmap.org/listinfo/hot" target="_blank">https://lists.openstreetmap.org/listinfo/hot</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> -------------------------------------------------------------<br>
>>   | Pierre GIRAUD<br>
>> -------------------------------------------------------------<br>
><br>
><br>
<br>
<br>
<br>
--<br>
-------------------------------------------------------------<br>
  | Pierre GIRAUD<br>
-------------------------------------------------------------<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>