Hi,
my previous assessment of the CORS issue turned out to be slightly premature.
The issue can be summarized as follows:
ISSUE: Stardog (up to v1.1.3) does not properly support CORS[1] interaction.
The issue is two-fold:
1) Stardog tries to authenticated the OPTIONS "pre-flight" request.
2) Stardog doesn't return CORS headers, hence can only be accessed
by browser web apps running in a different domain via a proxy.
Initially, I suspected the browser's to be not compliant with the CORS spec, however, as it turned out, the issue can be resolved by a small change in Stardog.
I tested it with Firefox and it seems to work fine. I've included more detailed analysis of the issue as well as references to relevant discussions.
I've posted a
patch to stardog.js with detailed comments. This will get things sorted on Safari and Chrome, if you use a proxy to inject the appropriate CORS headers.
As soon as 1) gets fixed, Firefox (and likely IE) will work too, but you still need the proxy to supply the CORS headers.
Fixing 2) will make the proxy redundant.
To be fair, I understand that this issue is probably low priority, however, I'd think there are people who would appreciate to have at least 1) fixed.
Thanks,
Laszlo