Browse Source

Merge pull request #200 from fancycode/sandbox_same_origin

No need for "allow-same-origin" in presentation sandboxes.
pull/202/head
Simon Eisenmann 10 years ago
parent
commit
a4f9cc3631
  1. 2
      static/js/directives/odfcanvas.js
  2. 2
      static/js/directives/pdfcanvas.js

2
static/js/directives/odfcanvas.js

@ -231,7 +231,7 @@ define(['require', 'underscore', 'jquery', 'text!partials/odfcanvas_sandbox.html @@ -231,7 +231,7 @@ define(['require', 'underscore', 'jquery', 'text!partials/odfcanvas_sandbox.html
return {
restrict: 'E',
replace: true,
template: '<div class="canvasContainer odfcontainer"><iframe allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" sandbox="allow-scripts allow-same-origin"></iframe></div>',
template: '<div class="canvasContainer odfcontainer"><iframe allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" sandbox="allow-scripts"></iframe></div>',
controller: controller
};

2
static/js/directives/pdfcanvas.js

@ -289,7 +289,7 @@ define(['require', 'underscore', 'jquery', 'text!partials/pdfcanvas_sandbox.html @@ -289,7 +289,7 @@ define(['require', 'underscore', 'jquery', 'text!partials/pdfcanvas_sandbox.html
return {
restrict: 'E',
replace: true,
template: '<div class="canvasContainer"><iframe allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" sandbox="allow-scripts allow-same-origin"></iframe></div>',
template: '<div class="canvasContainer"><iframe allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" sandbox="allow-scripts"></iframe></div>',
controller: controller
};

Loading…
Cancel
Save