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

Disable cookie popup if in an iframe in PR#47 #53

Open
ddfridley opened this issue Sep 19, 2024 · 0 comments
Open

Disable cookie popup if in an iframe in PR#47 #53

ddfridley opened this issue Sep 19, 2024 · 0 comments

Comments

@ddfridley
Copy link
Contributor

ddfridley commented Sep 19, 2024

In PR#47

In a repo like undebate that uses the civil-server, undebates can be embedded in iframes on other sites, like ballotpedia.org.

In the case where enciv-coolies is running within an iframe on another site, we should not popup the cookie consent request, And for now not apply any cookies.

I think that if window.parent===window the code is not in an iframe,

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

No branches or pull requests

1 participant