On Thu, Dec 3, 2015 at 5:15 PM, sebb <[email protected]> wrote:
> I have been trying to integrate the public/committee-info.json and
> public/member-info.json files into a the Javascript used by the new
> Apache Phone Book [1].

Excellent!

> Unfortunately it appears that Javascript cannot
> be used to download files except from the same origin.
>
> Whilst it would be possible to copy the files locally as part of a
> cron job or as part of a CGI script, that seems a bit
> unnecessary/wasteful if direct access can be arranged.
>
> AFAICT, access can be enabled by using the server header
>
> Access-Control-Allow-Origin: *
>
> Would it be possible to add this to the responses sent when GETting
> the public/* json files?

Committed revision 974450

> Or are there good reasons for not enabling the ACAO header here?

None that I can think of.  This data is meant to be truly public.

> [1] http://home.apache.org/phonebook.html

- Sam Ruby

Reply via email to