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
Unable to access cross domain iframes when not headless #4960
Comments
same problem here ! |
It seems some workaround is already discussed here #2548 (comment) and it worked for me. |
Thanks for your reply, @hi-ogawa. I'm perplexed as to why my code ran without flag until updating to 1.20, but that's ok, I'll take it! :-) |
--disable-features=site-per-process does seem to fix the problem. |
Doesn't work for me. It's fucking disgusting! |
The correct args are: await puppeteer.launch({headless: headless, devtools: true, args: ['--disable-web-security', '--disable-features=IsolateOrigins', ' --disable-site-isolation-trials']}); But puppeteer kept crashing. The reason was that I used an old puppeteer version, puppeteer 1.8.0. You can check that isolation is disabled in: Suggested in https://stackoverflow.com/a/51320323/337587 More information on the flag: https://www.chromium.org/Home/chromium-security/site-isolation @tshmit I suggest you close this issue, since it fixed in some version since you had the problem. |
You don't even understand how sexy you are
|
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it! |
According to ChatGPT and my testing, this is what actually works:
Then, when you go to |
After updating to v1.20 I'm unable to access iframes from a foreign domain with headless: false.
Here's a page with 4 iframes, 3 of which are cross domain:
And some code that tries to access the frames:
Output with headless false:
Output with headless true:
What is the expected result?
I'd expect to be able to access cross domain iframes whether running headless or not (this was the case as of ~v1.15) Am I missing something?
The text was updated successfully, but these errors were encountered: