Page overlay not authorized

Hi there,

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.

Thank you very much for any help you can provide.

Best regards,
Alla

Hi Alla,

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

Regards,
Ronan

This will allow Iframe to load in your page (this is your error)
For sure it’s an apache error

This does not help. Should I add htaccess files?

Hi,

No all htaccess files are already in Matomo folder, you do not need to add a new one.
Did you reload the apache configuration after editing ?

Ronan