Skip to content
presbrey edited this page Mar 22, 2012 · 1 revision

Cross-Origin Proxying

When using standard browser XHRs or other origin-sandboxed contexts, its possible to access protected sources using a cross-origin proxy. rdflib.js supports via jQuery using Prefilters.

Example

jQuery.ajaxPrefilter(function(options) {
    if (options.crossDomain) {
        options.url = "http://data.fm/proxy?uri=" + encodeURIComponent(options.url);
    }
});
Clone this wiki locally