<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic The target origin provided ('our domain') does not match the recipient window's origin ('auth.net do in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-target-origin-provided-our-domain-does-not-match-the/m-p/75036#M46729</link>
    <description>&lt;P&gt;We are having the same issue as in this post: &lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/AUthorize-net-hosted-payment-page-not-working-in-Chrome-Version/td-p/59271/highlight/false/page/2" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/AUthorize-net-hosted-payment-page-not-working-in-Chrome-Version/td-p/59271/highlight/false/page/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From reading that post, we have tried applying the content-security-policy via web.config file (asp.net/IIS) is not working. We are passing a paymentProfileId in the token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We are still seeing the error in the console.&lt;UL&gt;&lt;LI&gt;Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('our domain') does not match the recipient window's origin ('auth.net domain')&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The payment gets cut off and is not the correct size so you cannot see all of the fields.&lt;/LI&gt;&lt;LI&gt;The purchase window does not close after a purchase.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Example of web.config:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;httpProtocol&amp;gt;&lt;BR /&gt;&amp;lt;customHeaders&amp;gt;&lt;BR /&gt;&amp;lt;add name="Content-Security-Policy" value="frame-ancestors 'self' https://localhost:44300 *.ourdomain.com *.authorize.net" /&amp;gt;&lt;BR /&gt;&amp;lt;/customHeaders&amp;gt;&lt;BR /&gt;&amp;lt;/httpProtocol&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We have even tried with the&amp;nbsp;Content-Security-Policy-Report-Only but still no luck, it acts the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can we do when the content-security-policy is not working?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 21:43:39 GMT</pubDate>
    <dc:creator>jfkrueger</dc:creator>
    <dc:date>2021-02-15T21:43:39Z</dc:date>
    <item>
      <title>The target origin provided ('our domain') does not match the recipient window's origin ('auth.net do</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-target-origin-provided-our-domain-does-not-match-the/m-p/75036#M46729</link>
      <description>&lt;P&gt;We are having the same issue as in this post: &lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/AUthorize-net-hosted-payment-page-not-working-in-Chrome-Version/td-p/59271/highlight/false/page/2" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/AUthorize-net-hosted-payment-page-not-working-in-Chrome-Version/td-p/59271/highlight/false/page/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From reading that post, we have tried applying the content-security-policy via web.config file (asp.net/IIS) is not working. We are passing a paymentProfileId in the token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We are still seeing the error in the console.&lt;UL&gt;&lt;LI&gt;Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('our domain') does not match the recipient window's origin ('auth.net domain')&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The payment gets cut off and is not the correct size so you cannot see all of the fields.&lt;/LI&gt;&lt;LI&gt;The purchase window does not close after a purchase.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Example of web.config:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;httpProtocol&amp;gt;&lt;BR /&gt;&amp;lt;customHeaders&amp;gt;&lt;BR /&gt;&amp;lt;add name="Content-Security-Policy" value="frame-ancestors 'self' https://localhost:44300 *.ourdomain.com *.authorize.net" /&amp;gt;&lt;BR /&gt;&amp;lt;/customHeaders&amp;gt;&lt;BR /&gt;&amp;lt;/httpProtocol&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We have even tried with the&amp;nbsp;Content-Security-Policy-Report-Only but still no luck, it acts the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can we do when the content-security-policy is not working?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 21:43:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-target-origin-provided-our-domain-does-not-match-the/m-p/75036#M46729</guid>
      <dc:creator>jfkrueger</dc:creator>
      <dc:date>2021-02-15T21:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: The target origin provided ('our domain') does not match the recipient window's origin ('auth.ne</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-target-origin-provided-our-domain-does-not-match-the/m-p/75045#M46736</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the following in your Web.config&lt;/P&gt;&lt;PRE&gt;&amp;lt;system.webServer&amp;gt;
  &amp;lt;httpProtocol&amp;gt;&lt;BR /&gt;&amp;lt;customHeaders&amp;gt;&lt;BR /&gt;&amp;lt;add name="Content-Security-Policy" value="frame-ancestors 'self' *.YOUR_WEBSITE.com *.authorize.net;" /&amp;gt;&lt;BR /&gt;&amp;lt;/customHeaders&amp;gt;&lt;BR /&gt;&amp;lt;/httpProtocol&amp;gt;
&amp;lt;/system.webServer&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Feb 2021 11:42:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-target-origin-provided-our-domain-does-not-match-the/m-p/75045#M46736</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2021-02-16T11:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: The target origin provided ('our domain') does not match the recipient window's origin ('auth.ne</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-target-origin-provided-our-domain-does-not-match-the/m-p/75125#M46802</link>
      <description>&lt;P&gt;I'm pretty sure we've tried that but let me give it another go and post back, thank you for the suggestion!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 16:42:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-target-origin-provided-our-domain-does-not-match-the/m-p/75125#M46802</guid>
      <dc:creator>jfkrueger</dc:creator>
      <dc:date>2021-02-23T16:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: The target origin provided ('our domain') does not match the recipient window's origin ('auth.ne</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-target-origin-provided-our-domain-does-not-match-the/m-p/75491#M47076</link>
      <description>&lt;P&gt;No dice, still does not work. I find it odd that it doesn't work with the report-only option. Does anyone know of a setting within IIS that would be overriding the web.config?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 20:12:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-target-origin-provided-our-domain-does-not-match-the/m-p/75491#M47076</guid>
      <dc:creator>jfkrueger</dc:creator>
      <dc:date>2021-03-26T20:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: The target origin provided ('our domain') does not match the recipient window's origin ('auth.ne</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-target-origin-provided-our-domain-does-not-match-the/m-p/75492#M47077</link>
      <description>&lt;P&gt;Sometimes this error is the result of a target window that has not finished loading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The basic syntax to check that the target frame has loaded would be :&lt;/P&gt;&lt;PRE&gt;const iframe = document.getElementById("pay_frame");
iframe.addEventListener("load", function() {

// Continue to display the content ... 
});&lt;/PRE&gt;&lt;P&gt;For IIS, to disable inheritance in child applications, wrap the configuration block in a:&lt;/P&gt;&lt;PRE&gt;&amp;lt;location path="." inheritInChildApplications="false"&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;system.webServer&amp;gt;
  &amp;lt;httpProtocol&amp;gt;&lt;BR /&gt;&amp;lt;customHeaders&amp;gt;&lt;BR /&gt;&amp;lt;add name="Content-Security-Policy" value="frame-ancestors 'self' *.YOUR_WEBSITE.com *.authorize.net;" /&amp;gt;&lt;BR /&gt;&amp;lt;/customHeaders&amp;gt;&lt;BR /&gt;&amp;lt;/httpProtocol&amp;gt;
&amp;lt;/system.webServer&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;&amp;lt;/location&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 21:30:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/The-target-origin-provided-our-domain-does-not-match-the/m-p/75492#M47077</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2021-03-26T21:30:05Z</dc:date>
    </item>
  </channel>
</rss>

