The response that should be read by a browser by AJAX from another site needs the header added to it. So the Flask store on :5000 rather than Apache in this case :)
Rob On Fri, Oct 10, 2014 at 9:25 AM, Timothy Casling <[email protected]> wrote: > Thanks, Bill. I will read the issues - hopefully they’ll explain the > significance of “run to broadcast." I’m not too worried about specific > browser support, as long as it works it some browser(s). > > Rob, when you say add a header to the response. is this the a header on > the response from my apache server so that it says allow this page to make > cross origin requests to all domains, or do you mean the response from the > annotator store? > > Tim > > On 10 Oct 2014, at 17:13, Bill Hunt <[email protected]> wrote: > > Relatedly, I've documented in a bunch of tickets a few pieces of this, > here are the most relevant few: > > https://github.com/openannotation/annotator/issues/435 > https://github.com/openannotation/annotator-store/issues/99 > https://github.com/openannotation/annotator/pull/436#discussion_r17759899 > > TLDR: The store needs to be run to broadcast, and I found I had to > manually tell jQuery to use CORS support for IE - but Nick and I haven't > really solved that last issue and it's still open. > > Cheers, > -Bill > > > Bill Hunt > krues8dr.com > Ph: 20-BILL-HUNT > 202 455 4868 > > On Oct 10, 2014, at 12:12 PM, Robert Sanderson <[email protected]> > wrote: > > > This: http://enable-cors.org/ > > Or, TL;DR ... add a header to the response: Access-Control-Allow-Origin: * > > Rob > > > On Fri, Oct 10, 2014 at 9:06 AM, Tim Casling <[email protected]> wrote: > >> Hi >> >> I have set up an environment that uses apache to serve pages and an >> annotator Flask reference store on the same machine as the apache server. >> When I access a page and the page tries to access the remote resource >> (annotator on :5000) to pull annotations from the store, i get a >> cross-origin blocked issue. >> >> Any suggestions as to how I get around this? >> >> Thanks >> Tim >> >> _______________________________________________ >> annotator-dev mailing list >> [email protected] >> https://lists.okfn.org/mailman/listinfo/annotator-dev >> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev >> >> > > > -- > Rob Sanderson > Technology Collaboration Facilitator > Digital Library Systems and Services > Stanford, CA 94305 > _______________________________________________ > annotator-dev mailing list > [email protected] > https://lists.okfn.org/mailman/listinfo/annotator-dev > Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev > > > > -- Rob Sanderson Technology Collaboration Facilitator Digital Library Systems and Services Stanford, CA 94305
_______________________________________________ annotator-dev mailing list [email protected] https://lists.okfn.org/mailman/listinfo/annotator-dev Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
