More inspectlet configuring
This commit is contained in:
@ -127,6 +127,7 @@ var trusted = [
|
|||||||
'*.ytimg.com',
|
'*.ytimg.com',
|
||||||
'*.bitly.com',
|
'*.bitly.com',
|
||||||
'http://cdn.inspectlet.com/',
|
'http://cdn.inspectlet.com/',
|
||||||
|
'https://cdn.inspeclet.com/',
|
||||||
'wss://inspectletws.herokuapp.com/',
|
'wss://inspectletws.herokuapp.com/',
|
||||||
'http://hn.inspectlet.com/',
|
'http://hn.inspectlet.com/',
|
||||||
'*.googleapis.com',
|
'*.googleapis.com',
|
||||||
@ -138,7 +139,9 @@ app.use(helmet.csp({
|
|||||||
scriptSrc: [
|
scriptSrc: [
|
||||||
'*.optimizely.com',
|
'*.optimizely.com',
|
||||||
'*.aspnetcdn.com',
|
'*.aspnetcdn.com',
|
||||||
'*.d3js.org'
|
'*.d3js.org',
|
||||||
|
'https://cdn.inspectlet.com/inspectlet.js',
|
||||||
|
'http://cdn.inspectlet.com/inspectlet.js'
|
||||||
].concat(trusted),
|
].concat(trusted),
|
||||||
'connect-src': [
|
'connect-src': [
|
||||||
].concat(trusted),
|
].concat(trusted),
|
||||||
|
@ -70,7 +70,7 @@ script#inspectletjs(type='text/javascript').
|
|||||||
insp.type = 'text/javascript';
|
insp.type = 'text/javascript';
|
||||||
insp.async = true;
|
insp.async = true;
|
||||||
insp.id = "inspsync";
|
insp.id = "inspsync";
|
||||||
insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js';
|
insp.src = '//cdn.inspectlet.com/inspectlet.js';
|
||||||
var x = document.getElementsByTagName('script')[0];
|
var x = document.getElementsByTagName('script')[0];
|
||||||
x.parentNode.insertBefore(insp, x);
|
x.parentNode.insertBefore(insp, x);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user