fix: 更新 iframe 的 sandbox 属性以增强安全性

This commit is contained in:
kuaifan 2025-12-02 12:03:54 +00:00
parent 3e468c74e4
commit 2abc5976f9

View File

@ -5,7 +5,7 @@
class="micro-app-iframe-container" class="micro-app-iframe-container"
:class="{'iframe-immersive': immersive}" :class="{'iframe-immersive': immersive}"
:src="src" :src="src"
sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-modals allow-orientation-lock allow-pointer-lock allow-presentation allow-storage-access-by-user-activation allow-downloads" sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-modals allow-pointer-lock allow-storage-access-by-user-activation allow-downloads"
allow="microphone; camera; speaker-selection; geolocation; accelerometer; gyroscope; magnetometer; fullscreen; picture-in-picture; clipboard-read; clipboard-write"> allow="microphone; camera; speaker-selection; geolocation; accelerometer; gyroscope; magnetometer; fullscreen; picture-in-picture; clipboard-read; clipboard-write">
</iframe> </iframe>
</div> </div>