[annotator-dev] Annotator store flask
Andrew - FinalsClub
andrew at finalsclub.org
Mon Apr 30 22:44:23 UTC 2012
Hi Johnny,
That's great news about the Yuma-js work you're doing. Simon Rainer from yuma is likely going to join our next community call. I'll send an email confirming the time after this, but the plan is May 17th at 5pm GMT. Hopefully you can make it as well.
Cheers,
Andrew
On Apr 30, 2012, at 10:49 AM, Rufus Pollock <rufus.pollock at okfn.org> wrote:
> On 30 April 2012 11:54, johnny jiang <johnny.nan.jiang at gmail.com> wrote:
>> Thanks Nick, I've modified store.py to allow all the headers (including the
>> old ones), just to get it working first.
>>
>> What I'm trying to do is to integrate the annotator with Wordpress,
>> especially the authentication bit, permission is next step, followed by yuma
>
> That's fantastic. Would you be able to submit a patch to the existing
> wordpress plugin for annotator:
>
> <http://github.com/okfn/annotator-wordpress>
>
>> (image annotator) as I'm looking at the possibility to integration both the
>> annotator and yuma with Wordpress.
>
> Great :-)
>
> Rufus
>
>> Will let you know of any progress, thanks for your help.
>>
>> Kind regards,
>> Johnny
>>
>>
>> On Mon, Apr 30, 2012 at 2:36 AM, Nick Stenning <nick at whiteink.com> wrote:
>>>
>>> On Sat, Apr 28, 2012 at 06:39, johnny jiang <johnny.nan.jiang at gmail.com>
>>> wrote:
>>>>
>>>> XMLHttpRequest cannot load http://www.cxware.net:5000/annotations.
>>>> Request
>>>> header field x-annotator-auth-token-issue-time is not allowed by
>>>> Access-Control-Allow-Headers.
>>>
>>> Hi Johnny,
>>>
>>> This is a Cross-Origin Resource Sharing (CORS) error. Annotator uses
>>> CORS in order to be able to communicate with the backend across
>>> domains.
>>>
>>> In particular, this error implies that your backend isn't sending the
>>> headers it needs to in order to let the browser know that the
>>> cross-origin requests it's making are allowed. You can find out which
>>> headers you need to set by looking at the `after_request` hook in the
>>> reference annotator-store:
>>>
>>>
>>> https://github.com/okfn/annotator-store/blob/master/annotator/store.py#L29
>>>
>>> That said, from the looks of your error, you may well be sending the
>>> right headers at the backend but using an outdated version of the
>>> Annotator Auth plugin. Support for the
>>> "X-Annotator-Auth-Token-Issue-Time" header was removed in version
>>> 0.7.0 of the Annotator Store and version 1.2.0 of the Annotator.
>>>
>>> Hope that sets you off in the right direction.
>>>
>>> Best wishes,
>>> Nick
>>
>>
>>
>> _______________________________________________
>> annotator-dev mailing list
>> annotator-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/annotator-dev
>>
>
>
>
> --
> Co-Founder, Open Knowledge Foundation
> Promoting Open Knowledge in a Digital Age
> http://www.okfn.org/ - http://blog.okfn.org/
>
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/annotator-dev
More information about the annotator-dev
mailing list