Browse Source

No need for "allow-same-origin" in presentation sandboxes.

pull/200/head
Joachim Bauch 10 years ago
parent
commit
31df90a03a
  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