Embedded Webmail

Hi, I am trying to iframe my webmail on my account page in WooCommerce. I created a snippet to add the URL of the webmail to each user, and this will display in the dashboard, although the process is working, but the URL seems not to connect in the iframe. I keep getting

webmail.mydomain.com refused to connect.

in the regular browser seem to work fine
in .htaccess I added this:

# Allow embedding of webmail in an iframe
<IfModule mod_headers.c>
Header always set X-Frame-Options "ALLOWALL"
Header always set Content-Security-Policy "frame-ancestors 'self' https://mydomain.com"
</IfModule>

and still not working
How can I enable this in HestiaCP? Maybe need to adjust the panel?

x-frame-options:

ALLOWAL

Wordpress on a Digitalocean droplet and Cloudflare

  • Hestia Control Panel v1.8.12
  • Operating SystemUbuntu 22.04 (x86_64)
    apache+nginx