Skip to content

Commit

Permalink
fix: apply sandbox attribute to OnlyOffice/Collabora iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Apr 4, 2024
1 parent 00024d4 commit 071d17c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion changelog/unreleased/iframe-sandbox-drawio.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Bugfix: Apply sandbox attribute to iframe in draw-io extension

General hardening of ownCloud Web
General hardening of ownCloud Web integration with draw.io

https://github.com/owncloud/web/pull/10702
5 changes: 5 additions & 0 deletions changelog/unreleased/iframe-sandbox-external.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Apply sandbox attribute to iframe in app-external extension

General hardening of ownCloud Web integration with OnlyOffice/Collabora

https://github.com/owncloud/web/pull/10702
2 changes: 2 additions & 0 deletions packages/web-app-external/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
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 @@ -18,6 +19,7 @@
class="oc-width-1-1 oc-height-1-1"
:title="iFrameTitle"
allowfullscreen
sandbox="allow-scripts allow-same-origin"
/>
</div>
</template>
Expand Down

0 comments on commit 071d17c

Please sign in to comment.