Hi Dave!
CORS headers for read-only queries (i.e. to the query URL, not the
update URL) should be set already in Fuseki 1.1.1. For the update
endpoint CORS headers were added recently, see
https://issues.apache.org/jira/browse/JENA-652 .
Does it help to use the most recent Fuseki snapshot release?
What is the Fuseki URL you are accessing? I.e. the part after
localhost:3030.
If you still can't get it to work with the current snapshot, can you
provide a minimal example (a HTML/JS page) demonstrating the problem?
I've used Fuseki successfully with the SKOSjs editor, which performs
AJAX (XMLHttpRequest) SPARQL queries against both the query and update
endpoints. The update queries only started to work after JENA-652.
-Osma
On 09/11/14 23:49, David Patterson wrote:
I've loaded the latest Fuseki (1.1.1) and it runs. I can use the control panel
to select my dataset and issue queries.
However, when I load a web page into a browser (via File->Open page) that calls
http://localhost:3030/... I see nothing in the browser. When I look at the
javascript console for the page, I see an error message:
XMLHttpRequest cannot load http://localhost:3030/. No
'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'null' is therefore not allowed access.
Is there a recommended approach to this? I want to have a web page that issues
a Fuseki query for a starting set of resources. I'll then format them with
appropriate links so the user can delve into the data as they wish.
(a) Should I setup another server (such as Apache Tomcat) so the user asks it
for the first page which issues the Fuseki request?
(b) Do I setup an Apache Tomcat (or other server) with servlets, so my first
request is to a servlet that issues an http request to Fuseki and then returns
the data to be formatted?
(c) Something else?
I'm willing to do whatever it takes to make this work, but I'd like to have
some idea that it will work before trying it.
I'm currently running on a Windows 7 desktop machine with lots of resources,
but it may eventually run on a Mac.
Thanks.
Dave Patterson
________________________________
This message and all attachments are PRIVATE, and contain information that is
PROPRIETARY to Intelligent Automation, Inc. You are not authorized to transmit
or otherwise disclose this message or any attachments to any third party
whatsoever without the express written consent of Intelligent Automation, Inc.
If you received this message in error or you are not willing to view this
message or any attachments on a confidential basis, please immediately delete
this email and any attachments and notify Intelligent Automation, Inc.
--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Teollisuuskatu 23)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
[email protected]
http://www.nationallibrary.fi