Join the Stack Overflow Community
Stack Overflow is a community of 6.5 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I have a ruby on rails app that utilizes an Angular front-end app.

One portion of the app utilizes an iframe to display another site that we don't control. We'd like to be able to clear all cookies from the site hosted in the iframe. Is this possible to do?

I found this SO answer that describes how to remove all cookies on your current site. Hoping that there's a way we can also do this on the iframe site.

Issue we're trying to solve - user 1 logs in on the computer, goes to our site, signs in, utilizes iframe. iframe site retains that user's info through cookies. user 1 logs out.

User 2 uses the same computer, but iframe thinks it's user 1 due to previous cookies. Understandably this is a problem with the iframe site's API / workflow but we can't control that, so we're hoping to get around that by clearing cookies when a user goes to log out.

share|improve this question
2  
it's not possible. You can't handle cookies from other domain. Its security violation. – sig 22 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.