Skip to content

Commit

Permalink
force https for blob url in _frame.js. Updates helmet to allow more i…
Browse files Browse the repository at this point in the history
…nspectlet domains.
  • Loading branch information
terakilobyte committed Jun 16, 2015
1 parent 1607fe0 commit 810bf9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/js/lib/jailed/_frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ try {
blobUrl = blobUrl.getBlob();
}

var worker = new Worker(URL.createObjectURL(blobUrl));
var worker = new Worker(URL.createObjectURL('https:' + blobUrl));

// telling worker to load _pluginWeb.js (see blob code above)
worker.postMessage({
Expand Down
3 changes: 2 additions & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ var trusted = [
'wss://inspectletws.herokuapp.com/',
'http://hn.inspectlet.com/',
'*.googleapis.com',
'*.gstatic.com'
'*.gstatic.com',
'https://hn.inspectlet.com/'
];

app.use(helmet.csp({
Expand Down

0 comments on commit 810bf9a

Please sign in to comment.