I have a Chrome extension that injects an iframe from foo.com into bar.com. So, now bar.com contains a foo.com iframe. This iframe tries to write to localStorage, but I noticed that it will fail if the user has “Ignore exceptions and block third-party cookies from being set” checked. Is there any way the extension can add a domain to a white list to be exempted from this?
Share
I haven’t tried myself, but it might be possible with
chrome.experimental.contentSettingsAPI.