From 667d6141b1bef268755c34c2b367bcae151e70bf Mon Sep 17 00:00:00 2001 From: ws-wangjg <ws-wangjg@glodon.com> Date: Fri, 13 Dec 2024 16:28:20 +0800 Subject: [PATCH] feat: iframe sandbox allow --- src/pages/postmessage/index.jsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/pages/postmessage/index.jsx b/src/pages/postmessage/index.jsx index 7289d89f..675503c2 100644 --- a/src/pages/postmessage/index.jsx +++ b/src/pages/postmessage/index.jsx @@ -49,6 +49,20 @@ const PostMessage = () => { referrerPolicy="no-referrer-when-downgrade" sandbox="allow-scripts allow-same-origin" /> + + {/* <iframe + id="result" + name="CodePen" + title="CodePen Preview" + src="https://codepen.io/oscar-jite/fullpage/RwzOrjv?anon=true&view=" + sandbox="allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups-to-escape-sandbox allow-popups allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation" + allow="accelerometer *; bluetooth *; camera *; encrypted-media *; display-capture *; geolocation *; gyroscope *; microphone *; midi *; clipboard-read *; clipboard-write *; web-share *; serial *; xr-spatial-tracking *" + allowtransparency="true" + allowPaymentRequest="true" + allowfullscreen="true" + class="result-iframe" + loading="lazy" + /> */} </> ) }