[ckan-discuss] CORS Enabled CKAN
william.waites at okfn.org
Thu Oct 28 12:28:19 BST 2010
So there's a mounting campaign, http://esw.w3.org/CORS_Enabled to
introduce the header
for sites which provide an open data API of some sort. This means
CKAN API. This means visualisations and such become much easier.
It's not implemented everywhere yet but in the (near) future will
hopefully make using open data services all the easier.
The relevant Apache configuration parameter is
Header set Access-Control-Allow-Origin "*"
And the headers module must be loaded. All very lightweight,
just a minor configuration change with no forseeable side-effects
(for the open data case, closed data and intranets and such are
a different story).
I've implemented this on the main CKAN site, will also do so on
the country-specific ones today (unless somebody strongly
objects). This should also be put into the deployment templates
for new CKAN instances as it should be the default behaviour.
More information about the ckan-discuss