Marketing Cloud Next のフォームを外部サイトに埋め込む際、さまざまな問題が発生することがあります。よくある問題と解決方法は以下を参照してください。本記事は、ヘルプドキュメント Prepare Your Salesforce Org to Embed a Marketing Cloud Form on an External Site の補足記事です。
Framing 'https://yourorg.my.site.com/' violates the following ContentSecurity Policy directive: "frame-ancestors 'self'"
www.gstatic.com 上のローダーフレームを経由してコンテンツを読み込み、サイト固有の *.atari-embeds.googleusercontent.com サブドメイン上のサンドボックス内で実行する。ブラウザの frame-ancestors チェックでは、__祖先チェーン内のすべてのオリジン__ が Trusted Domains for Inline Framing リストに含まれている必要がある。これらの中間オリジンは動的に生成されプラットフォーム固有であるため、信頼済みリストへの確実な追加が難しい。yourorg.my.site.com/SiteName/_/commcsp)。data-web-tracking 属性が true に設定されているが、組織に Data Cloud Web SDK コネクターが設定されていない。data-web-tracking 属性を false に設定する。clarity.jsなどのセッション録画・アナリティクス系ツール)が、ネイティブのElement.prototype.attachShadowメソッドを上書きしていることが原因です。Lightning Web Componentsはコンポーネントのshadow rootを構築する際にネイティブのattachShadow APIを利用します。このサードパーティスクリプトによる上書きが、LWCフレームワークがshadow rootを作成するより前に実行されると、その呼び出しが横取りされてしまい、埋め込まれたMCN Form(およびページ上の他のLWC/Lightning Outコンポーネント)が、コンソールにエラーが出ないまま表示されなくなります。上書きがshadow root作成の後に発生する場合は影響はありません。これはホストページ上のスクリプトの読み込み順に依存するため、事象が再現性なく発生しているように見えることがあります。attachShadowが上書きされることを許容する(=影響を受けないようにする)サポートされた方法はありません。お客様側のページ・スクリプト構成での対応が必要です。005321446

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.