Skip to main content

AAM UI does not load

Vasyl MartyniukTroubleshootingLess than 1 minute

AAM IFrame Not Loading

We decided to encapsulate the AAM UI within a stand-alone iframe long ago to prevent functionality issues caused by plugins or themes that do not adhere to developer guidelines. However, because the AAM UI is presented in an iframe, it may not function on sites where iframes are restricted for compliance or security reasons.

Fortunately, there's a solution. You can configure your server to allow iframes originating from the same domain. Here's how to do it:

For Apache Servers

Modify your .htaccess file by adding the following lines:

<IfModule mod_headers.c>
	Header set X-Frame-Options SAMEORIGIN
</IfModule>

For Nginx Servers

Add the X-Frame-Options header using the add_header directive. Insert the following configuration in your nginx.conf file:

server {
    # Other server configurations

    location / {
        # Other location configurations

        add_header X-Frame-Options "SAMEORIGIN";
    }
}

To set this header globally for all servers and locations, place the add_header directive inside the http context:

http {
    # Other http configurations

    add_header X-Frame-Options "SAMEORIGIN";

    server {
        # Server configurations
    }
}

This configuration ensures the X-Frame-Options header is set to SAMEORIGIN for all responses from your Nginx server.

Virtual Assistant