[Bug] Overlay cross domains #23120
Labels
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
To Triage
An issue awaiting triage by a Matomo core team member
What happened?
When using the overlay functions with matomo and a website in a different domain, the left sidebar with views data is blocked on loading status.
Possible Bug Solution
testing locally and also in a production environment, the issue seems with the connection between child iframe and overlay parent.
a possible fix could be added using js
window.postMessage()
api, here it is a tested implementationplugins/Overlay/notifyParentIframe.twig
plugins/Overlay/javascripts/Piwik_Overlay.js
/js/piwik.js
What should happen?
Matomo render the iframe and then the sidebar with views data.
How can this be reproduced?
Go to [Matomo URL]
-> Log In
-> Select a website
-> Left side menu, click
Behaviour
-> Click and open
Pages
-> Find some views filtering by date and website
-> Click the
Open Page Overlay
button (second image button for single page url in standard matomo)Matomo version
5.2.0
PHP version
8
Server operating system
Linux
What browsers are you seeing the problem on?
No response
Computer operating system
MacOS
Relevant log output
Validations
The text was updated successfully, but these errors were encountered: