Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omid_v1_present iframe missing sandbox attribute #30

Open
bjoberg opened this issue Jun 20, 2023 · 3 comments
Open

omid_v1_present iframe missing sandbox attribute #30

bjoberg opened this issue Jun 20, 2023 · 3 comments

Comments

@bjoberg
Copy link

bjoberg commented Jun 20, 2023

Overview

The iframe created to detect if omid is present, or not, does not contain a sandbox attribute.

Current output:

<iframe id="omid_v1_present" name="omid_v1_present" style="display: none;">
...
</iframe>

Desired output:

<iframe id="omid_v1_present" name="omid_v1_present" style="display: none;" sandbox>
...
</iframe>

Code reference.

Why is this a problem?

This is a problem because the sandbox attribute "controls the restrictions applied to the content embedded in the <iframe>" (ref). Although this iframe only exists so that verification scripts can detect if omid is present, it is best practice to enable all iframe restrictions.

What can be done?

Add sandbox to the iframe.

@nlehrer
Copy link

nlehrer commented Jun 20, 2023

Yes, I think adding the sandbox attribute should be fine. See #31 for discussion of how it will be merged.

@nlehrer
Copy link

nlehrer commented Jun 23, 2023

The change in the upstream repo was merged and will be included in v1.4.6 which is being released at the moment (should appear in this repo today or Monday).

@bjoberg
Copy link
Author

bjoberg commented Jun 23, 2023

Amazing 🙌🏼. Thanks for your support!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants