More inspectlet configuring

This commit is contained in:
terakilobyte
2015-06-16 12:28:05 -04:00
parent 308e539e1e
commit b0b236821e
2 changed files with 5 additions and 2 deletions

View File

@ -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),

View File

@ -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);
} }