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.