[annotator-dev] Annotator store flask
johnny.nan.jiang at gmail.com
Mon Apr 30 22:20:50 BST 2012
Will do that. I will set up an online demo once I get them all working,
then patch it if everyone is happy :)
On Tue, May 1, 2012 at 1: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
> > 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
> That's fantastic. Would you be able to submit a patch to the existing
> wordpress plugin for annotator:
> > (image annotator) as I'm looking at the possibility to integration both
> > annotator and yuma with Wordpress.
> Great :-)
> > 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>
> >> 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:
> >> 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/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the annotator-dev