niklasvh / html2canvas

Screenshots with JavaScript
https://html2canvas.hertzen.com/
MIT License
30.11k stars 4.75k forks source link

"Blocked a frame with origin" with firebase auth by Google. Raises only in Safari on iPhone #3117

Open Azrael-git opened 10 months ago

Azrael-git commented 10 months ago

Bug reports:

For some reason on iPhone (Safari) I'm getting such error for my Firebase auth: Blocked a frame with origin "https://my-website.com/" from accessing a frame with origin "https://my-website-8c9f0.firebaseapp.com/". Protocols, domains, and ports must match. (and also the same error for stripe library on my website)

I've made some research and noticed that this happens only if I have the html2canvas called on the same user flow where I have firebase auth. I've already tried such solutions:

provider.setCustomParameters({
  'prompt': "select_account"
});
data-html2canvas-ignore="true"

I have no idea anymore what can I try to fix that. It happens only on iPhones (not sure about iPads) and only in Safari (in Chrome everything is fine). Appreciate any help.

Specifications:

Azrael-git commented 9 months ago

Issue still not resolved. I've just changed the user flow, no other solution still...