This is a diff between 1.1 and 1.2 revisions:

131a130
< * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]]
130d130
> * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]]
\ No newline at end of file
126a125
< * [[VirtTipsAndTricksCORsEnableSPARQLURLs][Cross-Origin Resource Sharing (CORS) to enable a Virtuoso SPARQL Endpoint]]
125d125
> * [[VirtTipsAndTricksCORsEnableSPARQLURLs][Enabling Cross-Origin Resource Sharing (CORS) on a Virtuoso SPARQL Endpoint]]
73d54
> Any Virtuoso PL (VSP)-based application can implement CORS checking through well-known HTTP functions <code>[[http://docs.openlinksw.com/virtuoso/fn_http_request_header.html][http_request_header()]]</code> and <code>[[http://docs.openlinksw.com/virtuoso/fn_http_header.html][http_header()]]</code>. This method will work with any version of Virtuoso. For instance --
>
> <verbatim>
> <?vsp
> IF (http_request_header (lines, 'Origin', NULL) = 'http://host.org')
> {
> http_header ('Access-Control-Allow-Origin: http://host.org\r\n');
> }
> ELSE
> {
> RETURN;
> }
> -- Additional code here ---
>
> ?>
> </verbatim>
>
> Applications running in other hosted environments (Perl, Python, PHP, ASP.NET, etc.) may also use their specific scripting options to add and/or check relevent headers.
>
72d52
> ---+++ Application-level CORS Setup (for any Virtuoso version)
31a30
< Any Virtuoso PL (VSP)-based application can implement CORS checking through well-known HTTP functions <code>[[http://docs.openlinksw.com/virtuoso/fn_http_request_header.html][http_request_header()]]</code> and <code>[[http://docs.openlinksw.com/virtuoso/fn_http_header.html][http_header()]]</code>. This method will work with any version of Virtuoso. For instance --
<
< <verbatim>
< <?vsp
< IF (http_request_header (lines, 'Origin', NULL) = 'http://host.org')
< {
< http_header ('Access-Control-Allow-Origin: http://host.org\r\n');
< }
< ELSE
< {
< RETURN;
< }
< -- Additional code here ---
<
< ?>
< </verbatim>
<
< Applications running in other hosted environments (Perl, Python, PHP, ASP.NET, etc.) may also use their specific scripting options to add and/or check relevent headers.
<
< ---+++ Server-level CORS Setup
<
29a29
< ---+++ Application-level CORS Setup
28d29
> ---+++ Server-level CORS Setup (for recent Virtuoso versions)