Skip to content

Commit 3da10fd

Browse files
committed
Revert "Fix the Mixed Content mess in XHR Requests"
1 parent 0a7b8ba commit 3da10fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

js/jsonld.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,8 +1687,7 @@ jsonld.documentLoaders.jquery = function($, options) {
16871687
},
16881688
// ensure Accept header is very specific for JSON-LD/JSON
16891689
headers: {
1690-
'Accept': 'application/ld+json, application/json',
1691-
'Upgrade-Insecure-Requests': '1'
1690+
'Accept': 'application/ld+json, application/json'
16921691
},
16931692
dataType: 'json',
16941693
crossDomain: true,
@@ -1965,7 +1964,6 @@ jsonld.documentLoaders.xhr = function(options) {
19651964
{contextUrl: null, documentUrl: url, document: null});
19661965
};
19671966
req.open('GET', url, true);
1968-
req.setRequestHeader('Upgrade-Insecure-Requests', '1');
19691967
req.setRequestHeader('Accept', 'application/ld+json, application/json');
19701968
req.send();
19711969
}

0 commit comments

Comments
 (0)