I noticed that when attempting to use the Page Overlay feature under Behavior/User ID Action URL, I am encountering an issue. Specifically, I am seeing a screen with an error message in the browser console stating, “Found invalid iframe origin in hash URL: http://XXX.YYY.ZZZ.”
and Matomo screen looks like this:
For context, I have added the site in question under Trusted Matomo Hostname in General settings, as well as under Cross-Origin Resource Sharing (CORS) domains. Despite this, the issue persists.
I was wondering if there is a solution to this problem that would allow me to use the Page Overlay feature as intended.
It looks like an Apache 2 error, you may have to enable
“AllowOverride All” on your Apache config (directly on your web server, not Matomo)
This file is located in /etc/apache2/apache2.conf or directly in you single website file config in /etc/apache/sites-enabled/XXXXXX.conf