<div dir="ltr">OK, good to know.  I've got a suitable work around for the moment.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 2, 2015 at 3:34 PM, 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">Hi James,<br>
<br>
Sorry, no, I didn't take time to have a look at this.<br>
<br>
Pierre<br>
<br>
On Thu, Apr 2, 2015 at 7:02 PM, James Conkling<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:james.lane.conkling@gmail.com">james.lane.conkling@gmail.com</a>> wrote:<br>
> Hi Pierre,<br>
><br>
> Any update on CORS errors on the TM?  Still getting Cross Origin Errors when<br>
> I make ajax requests.<br>
><br>
> This would definitely be useful, but there are also workarounds I can use<br>
> until this is figured out.<br>
><br>
> On Tue, Mar 17, 2015 at 1:06 PM, James Conkling<br>
> <<a href="mailto:james.lane.conkling@gmail.com">james.lane.conkling@gmail.com</a>> wrote:<br>
>><br>
>> Threw together some test code:<br>
>> <a href="http://plnkr.co/edit/MkrooDeQPhmADv4CrnTY?p=preview" target="_blank">http://plnkr.co/edit/MkrooDeQPhmADv4CrnTY?p=preview</a>.  Look at the browser<br>
>> console for success/error messages<br>
>><br>
>> Can confirm that using the second url (which points to<br>
>> '<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<br>
>> using the first url (which points to another CORS enabled project server)<br>
>> doesn't throw an error.<br>
>><br>
>> On Tue, Mar 17, 2015 at 11:58 AM, Pierre GIRAUD <<a href="mailto:pierre.giraud@gmail.com">pierre.giraud@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> This is supposed to land on the following code:<br>
>>><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>
>>> <<a href="mailto:james.lane.conkling@gmail.com">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<br>
>>> > <<a href="mailto:pierre.giraud@gmail.com">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">mikel.maron@gmail.com</a>><br>
>>> >> wrote:<br>
>>> >> > Huh I had thought that CORS was enabled for the OSMTM api ... is<br>
>>> >> > that<br>
>>> >> > not<br>
>>> >> > the case Drazen or Pierre?<br>
>>> >> ><br>
>>> >> > * Mikel Maron * <a href="tel:%2B14152835207" value="+14152835207">+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">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<br>
>>> >> > to<br>
>>> >> > load<br>
>>> >> > the tasks.json file into an external app so I can monitor the<br>
>>> >> > progress<br>
>>> >> > of<br>
>>> >> > some HOT projects (the API docs suggest this should be exposed now,<br>
>>> >> > even<br>
>>> >> > though the rest of the API has not yet been implemented), but am<br>
>>> >> > 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">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<br>
>>> >> > 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">+14152835207</a> @mikel s:mikelmaron<br>
>>> >> ><br>
>>> >> ><br>
>>> >> > On Friday, March 6, 2015 1:52 PM, Sam Libby <<a href="mailto:SLibby@esri.com">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<br>
>>> >> > not<br>
>>> >> > seen<br>
>>> >> > it on social media.<br>
>>> >> ><br>
>>> >> > A question  for the group – is there an available dataset/API in<br>
>>> >> > json,<br>
>>> >> > geojson, shapefile, etc that shows the locations of all historical<br>
>>> >> > 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<br>
>>> >> > as<br>
>>> >> > well.  I think it would be a really interesting overlay to add to<br>
>>> >> > the<br>
>>> >> > 10-year map or other OSM visualizations – especially in W. Africa<br>
>>> >> > 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">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">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">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">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>
>><br>
>><br>
><br>
<br>
<br>
<br>
--<br>
-------------------------------------------------------------<br>
  | Pierre GIRAUD<br>
-------------------------------------------------------------<br>
</div></div></blockquote></div><br></div>