Skip to content

Commit

Permalink
feat: iframe sandbox allow
Browse files Browse the repository at this point in the history
  • Loading branch information
ws-wangjg committed Dec 13, 2024
1 parent f62303a commit 667d614
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/pages/postmessage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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&amp;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"
/> */}
</>
)
}
Expand Down

0 comments on commit 667d614

Please sign in to comment.