Skip to content

Commit

Permalink
Fix IE sandbox stuff (see #44 and #49)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHahn committed Jun 4, 2014
1 parent da9de69 commit 4d68a93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/middleware/csp.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ module.exports = function csp(options) {
if (version >= 10) {
headers.push('X-Content-Security-Policy');
if (!setAllHeaders) {
policy = { sandbox: policy.sandbox };
if (policy.sandbox) {
policy = { sandbox: policy.sandbox };
} else {
policy = {};
}
}
}
break;
Expand Down

0 comments on commit 4d68a93

Please sign in to comment.