W3C home > Mailing lists > Public > public-lod@w3.org > October 2010

Re: Please allow JS access to Ontologies and LOD

From: Nathan <nathan@webr3.org>
Date: Wed, 27 Oct 2010 23:42:46 +0100
Message-ID: <4CC8AAE6.2050502@webr3.org>
To: Hugh Glaser <hg@ecs.soton.ac.uk>
CC: Linked Data community <public-lod@w3.org>
Hi Hugh,

Do try using set instead

   Header set Access-Control-Allow-Origin "*"

This will replace any existing value, whereas add allows duplicates, as 
it simply adds the header again.



Hugh Glaser wrote:
> Thanks.
> I had tried removing from the httpd.conf, but then I get none :-)
> So it is two or none, and I will leave it as 2 for the moment.
> I am pretty sure it will be something to do with the way we trap 404 in an
> error-handler to generate the docs.
> I see there are two for a 404 URI as well.
> Can't see why, but will ponder on it.
> Cheers
> On 27/10/2010 23:23, "Nathan" <nathan@webr3.org> wrote:
>> Hugh Glaser wrote:
>>> are fine, but the rkb docs suffer:
>>> curl -I http://southampton.rkbexplorer.com/description/person-00173
>>> curl -I http://southampton.rkbexplorer.com/data/person-00173
>> Yup, the problem is the header is being added twice, unsure of your
>> setup so unsure the two places it's being added!
>> Melvin ran in to the same thing when the header was added by a PHP
>> script [ header("Access-Control... ] and also added via the .htaccess -
>> perhaps you have the same problem, or perhaps you have it in a .htaccess
>> and the main vhost config?
>> Unsure, but there's a duplicate somewhere so perhaps just remove the one
>> you added for a quick fix :)
>> Best,
>> Nathan
Received on Wednesday, 27 October 2010 22:43:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:16:09 UTC