File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1687,7 +1687,8 @@ jsonld.documentLoaders.jquery = function($, options) {
1687
1687
} ,
1688
1688
// ensure Accept header is very specific for JSON-LD/JSON
1689
1689
headers : {
1690
- 'Accept' : 'application/ld+json, application/json'
1690
+ 'Accept' : 'application/ld+json, application/json' ,
1691
+ 'Upgrade-Insecure-Requests' : '1'
1691
1692
} ,
1692
1693
dataType : 'json' ,
1693
1694
crossDomain : true ,
@@ -1964,6 +1965,7 @@ jsonld.documentLoaders.xhr = function(options) {
1964
1965
{ contextUrl : null , documentUrl : url , document : null } ) ;
1965
1966
} ;
1966
1967
req . open ( 'GET' , url , true ) ;
1968
+ req . setRequestHeader ( 'Upgrade-Insecure-Requests' , '1' ) ;
1967
1969
req . setRequestHeader ( 'Accept' , 'application/ld+json, application/json' ) ;
1968
1970
req . send ( ) ;
1969
1971
}
You can’t perform that action at this time.
0 commit comments