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

Restrict Clipboard API to top-level origin #106

Open
dway123 opened this issue Nov 14, 2019 · 0 comments · May be fixed by #120
Open

Restrict Clipboard API to top-level origin #106

dway123 opened this issue Nov 14, 2019 · 0 comments · May be fixed by #120

Comments

@dway123
Copy link

dway123 commented Nov 14, 2019

The Async Clipboard API doesn't already restrict API use to top-level origins, but other potentially dangerous APIs like screen share do. Using a feature policy to restrict usage to top-level origins should help avoid potential permission/data leakages across origins.

Could we please add a Feature Policy to require the Clipboard API to only be accessible to top-level frames, at least unless the owning origin explicitly allows subframes to access this? (An extension from this could be only allowing the top-level origin to access this API, and not allowing sub-frames to access this at all). This change can likely use very similar text as in the screen share spec.

@dway123 dway123 linked a pull request Jun 13, 2020 that will close this issue
5 tasks
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.

1 participant