Skip to content

Commit

Permalink
Remove sandbox for apps (#11175)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndBear authored Jul 11, 2024
1 parent 60459c4 commit bd10ab8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/web-app-draw-io/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
ref="drawIoEditor"
:src="iframeSource"
:title="$gettext('Draw.io editor')"
sandbox="allow-scripts allow-same-origin"
/>
</template>

Expand Down
2 changes: 0 additions & 2 deletions packages/web-app-external/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
class="oc-width-1-1 oc-height-1-1"
:title="iFrameTitle"
allowfullscreen
sandbox="allow-scripts allow-same-origin"
/>
<div v-if="appUrl && method === 'POST' && formParameters" class="oc-height-1-1 oc-width-1-1">
<form :action="appUrl" target="app-iframe" method="post">
Expand All @@ -19,7 +18,6 @@
class="oc-width-1-1 oc-height-1-1"
:title="iFrameTitle"
allowfullscreen
sandbox="allow-scripts allow-same-origin"
/>
</div>
</template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`The app provider extension > should be able to load an iFrame via get 1`] = `
"<iframe src="https://example.test/d12ab86/loe009157-MzBw" class="oc-width-1-1 oc-height-1-1" title="" example-app" app content area" allowfullscreen="" sandbox="allow-scripts allow-same-origin"></iframe>
"<iframe src="https://example.test/d12ab86/loe009157-MzBw" class="oc-width-1-1 oc-height-1-1" title="" example-app" app content area" allowfullscreen=""></iframe>
<!--v-if-->"
`;
Expand All @@ -13,7 +13,7 @@ exports[`The app provider extension > should be able to load an iFrame via post
<form action="https://example.test/d12ab86/loe009157-MzBw" target="app-iframe" method="post"><input type="submit" class="oc-hidden" value="[object Object]">
<div><input name="access_token" type="hidden" value="asdfsadfsadf"></div>
<div><input name="access_token_ttl" type="hidden" value="123456"></div>
</form> <iframe name="app-iframe" class="oc-width-1-1 oc-height-1-1" title="" example-app" app content area" allowfullscreen="" sandbox="allow-scripts allow-same-origin"></iframe>
</form> <iframe name="app-iframe" class="oc-width-1-1 oc-height-1-1" title="" example-app" app content area" allowfullscreen=""></iframe>
</div>"
`;
Expand Down

0 comments on commit bd10ab8

Please sign in to comment.