---
schema_version: "1"
id: fc27b26d6cbd1d6a805741db90fee6ba631726dfbc22415831b38c28c49b8e28
title: Troubleshooting Auto-Response Messaging Components
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/messaging_troubleshoot_auto_response_components.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.messaging_troubleshoot_auto_response_components.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9be6131908848aa6c595101acb697ad730d469df85ccc8f6a0c2bee0524a321a
description: You can encounter error messages when sending an auto-response messaging component.
products:
  - Service Cloud
  - Digital Engagement
release: "264"
---
# Troubleshooting Auto-Response Messaging Components

You can encounter error messages when sending an auto-response messaging component.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=service.messaging_editions.htm&amp;type=5&amp;language=en_US" target="_blank">View supported editions.</a></td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <a name="messaging_troubleshoot_auto_response_components__d875e2413"><!-- --></a><span style="vertical-align:text-bottom;display:inline-block;"><img style="margin-bottom:0;" id="messaging_troubleshoot_auto_response_components__d875e2413" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_channels-264-0-0-production-enus/f3c4b3d2-ff86-4f7c-9fe2-3d8b23d35109/resources-global/_corporate/images/checkmark.png" alt="Checkmark"></span>
            <strong>This article applies to:</strong>
          </td>

          <td class="slds-cell-wrap" style="vertical-align:top;">Enhanced In-App Chat, Enhanced Web Chat v1, Enhanced Web Chat v2, and Bring Your
            Own Channel</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <span style="vertical-align:text-bottom;display:inline-block;"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_channels-264-0-0-production-enus/f3c4b3d2-ff86-4f7c-9fe2-3d8b23d35109/resources-global/_corporate/images/crossmark.png" alt="X icon"></span>
            <strong>This article doesn’t apply to:</strong>
          </td>

          <td class="slds-cell-wrap" style="vertical-align:top;">Enhanced WhatsApp, Enhanced Facebook Messenger, Standard and Enhanced SMS,
            Enhanced Apple Messages for Business, and Enhanced LINE channels</td>

        </tr>
      </tbody>
    </table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d138709e98">Error Message</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d138709e101">Solution</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Error Message" class="slds-cell-wrap" style="vertical-align:top;" headers="d138709e98 ">
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>Refused to frame 
‘&lt;your auto-response URL&gt;’ because 
it violates the following Content 
Security Policy directive: 
“frame-src ‘self’</code></pre>
            </td>

            <td data-label="Solution" class="slds-cell-wrap" style="vertical-align:top;" headers="d138709e101 ">Add the auto-response URL as a <a href="https://help.salesforce.com/s/articleView?id=xcloud.security_trusted_urls_manage.htm&amp;type=5&amp;language=en_US" target="_blank">CSP Trusted URL</a>. If Display
              Configuration is set to Pop-Up Message, select Allow site for frame-src under CSP
              Directives.&nbsp; Depending on the contents of the URL, check additional CSP directives. For
              example, if the web page is supposed to render images, select Allow site for
              img-src.</td>

          </tr>
          <tr class="">
            <td data-label="Error Message" class="slds-cell-wrap" style="vertical-align:top;" headers="d138709e98 ">
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>Framing '&lt;your auto-response URL&gt;' violates the following Content Security Policy directive: "frame-ancestors 'self' &lt;list of allowed origins&gt;". The request has been blocked.</code></pre>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>The page's settings blocked the loading of a resource (frame-ancestors) at &lt;URL&gt; because it violates the following directive: "frame-ancestors 'self' &lt;origins&gt;"</code></pre>
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>Refused to load &lt;URL&gt; because it does not appear in the frame-ancestors directive of the Content Security Policy.</code></pre>
            </td>

            <td data-label="Solution" class="slds-cell-wrap" style="vertical-align:top;" headers="d138709e101 ">
              <p>To allow external sites to load a Visualforce page, survey, Experience Cloud
                site, or Salesforce Site in an inline frame, <a href="https://help.salesforce.com/s/articleView?id=xcloud.security_clickjack_specify_iframe_trusted_domains.htm&amp;type=5&amp;language=en_US" target="_blank">add the domain as a trusted domain for inline
                  frames</a>.</p>
              <p> If you're hosting a Visualforce page in an inline frame,
                make sure that <strong class="uicontrol">Enable clickjack protection for customer Visualforce
                  pages with standard headers</strong> is deselected on the Session Settings
                Setup page.</p>
              <p>If you’re hosting a survey in an iframe for a different domain
                than the parent page, make sure that you have the Salesforce Feedback Management
                license.</p>
              <p style="margin-bottom:0;">If you're hosting a Salesforce site in an inline frame, make sure
                that <strong class="uicontrol">Allow framing of site pages on external domains (good
                  protection)</strong> or <strong class="uicontrol">Allow framing by any page (no
                  protection)</strong> is selected for the clickjack protection level on the
                Site Edit Setup page. For more information, see <a href="https://developer.salesforce.com/docs/atlas.en-us.salesforce_platform_portal_implementation_guide.meta/salesforce_platform_portal_implementation_guide/sites_creating_and_editing_sites.htm" target="_blank">Salesforce Sites Implementation Guide: Create
                  and Edit Salesforce Sites</a>.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Error Message" class="slds-cell-wrap" style="vertical-align:top;" headers="d138709e98 ">
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>Refused to display 
‘&lt;your auto-response URL&gt;’ in a 
frame because it set 
‘X-Frame-Options’ to ‘sameorigin’.</code></pre>
            </td>

            <td data-label="Solution" class="slds-cell-wrap" style="vertical-align:top;" headers="d138709e101 ">The auto-response URL can’t be loaded in an iframe. The owners of the web page
              and its HTTP headers control this configuration. If your deployment lives on an
              external website, fix it on the external website, not in Salesforce. If your
              deployment lives on a VisualForce page, the workaround is to downgrade <a href="https://help.salesforce.com/s/articleView?id=xcloud.security_clickjack_protection_configure.htm&amp;language=en_US" target="_blank">Clickjack protection</a> and remove
              Visualforce-specific instructions.</td>

          </tr>
          <tr class="">
            <td data-label="Error Message" class="slds-cell-wrap" style="vertical-align:top;" headers="d138709e98 ">
              <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code>Blocked form submission to 
‘&lt;your auto-response URL&gt;’ because 
the form's frame is sandboxed 
and the 'allow-forms' permission 
is not set</code></pre>
            </td>

            <td data-label="Solution" class="slds-cell-wrap" style="vertical-align:top;" headers="d138709e101 ">
              <p>Opt out of applying iframe restrictions on the client side by adding this snippet
                to your code snippet (external website) or your &lt;head&gt; markup (Experience
                site):</p>
              <p>
                <code>embeddedservice_bootstrap.settings.omitSandbox =
          true;</code>
              </p>
              <p style="margin-bottom:0;">You typically see this error message when trying to show a pop-up message auto-response on a
                website with functionality that’s restricted in our top-level container iframe. Setting the
                flag to true removes all restrictions from the container iframe. Security implications
                apply to recommending this workaround. When you bypass other security restrictions that
                sandboxing prevents, your web page for a pop-up message auto-response can become vulnerable
                to malicious code.</p>
            </td>

          </tr>
        </tbody>
      </table>