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]. 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?

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

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

Reply via email to