Re: Please allow JS access to Ontologies and LOD

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.

Best,

Nathan

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