<?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 No Response from iframecommunicatior Laravel 5.8 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-Response-from-iframecommunicatior-Laravel-5-8/m-p/68452#M41653</link>
    <description>&lt;P&gt;I am using Laravel 5.8 and&amp;nbsp;authorizenet/authorizenet: ^2.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am requesting a hosted form using a paymentFormToken and getting back the proper iFrame content and I am able to make a payment to a customer and create a payment profile etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is I get no response to the iframe.&amp;nbsp; I can see the response from api.ashx and it has all of the info I need, however it doesn't hit the&amp;nbsp;window.CommunicationHandler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the following error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('&lt;A href="https://dockmaster.geigerent.com" target="_blank"&gt;https://dockmaster.geigerent.com&lt;/A&gt;') does not match the recipient window's origin ('&lt;A href="https://test.authorize.net" target="_blank"&gt;https://test.authorize.net&lt;/A&gt;').&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if that is part of the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added headers as middleware like this:&lt;/P&gt;&lt;P&gt;public function handle($request, Closure $next)&lt;BR /&gt;{&lt;BR /&gt;$response = $next($request);&lt;/P&gt;&lt;P&gt;$response-&amp;gt;headers-&amp;gt;set('Content-Security-Policy', "frame-ancestors 'self' dockmaster.geigerent.com *.authorize.net");&lt;/P&gt;&lt;P&gt;return $response;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it has no effect on the above error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what I am doing wrong here, I have been beating my head against this keyboard for some time now.&amp;nbsp; Can someone help?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2019 19:14:33 GMT</pubDate>
    <dc:creator>Stellar2019</dc:creator>
    <dc:date>2019-07-16T19:14:33Z</dc:date>
    <item>
      <title>No Response from iframecommunicatior Laravel 5.8</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-Response-from-iframecommunicatior-Laravel-5-8/m-p/68452#M41653</link>
      <description>&lt;P&gt;I am using Laravel 5.8 and&amp;nbsp;authorizenet/authorizenet: ^2.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am requesting a hosted form using a paymentFormToken and getting back the proper iFrame content and I am able to make a payment to a customer and create a payment profile etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is I get no response to the iframe.&amp;nbsp; I can see the response from api.ashx and it has all of the info I need, however it doesn't hit the&amp;nbsp;window.CommunicationHandler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the following error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('&lt;A href="https://dockmaster.geigerent.com" target="_blank"&gt;https://dockmaster.geigerent.com&lt;/A&gt;') does not match the recipient window's origin ('&lt;A href="https://test.authorize.net" target="_blank"&gt;https://test.authorize.net&lt;/A&gt;').&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if that is part of the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added headers as middleware like this:&lt;/P&gt;&lt;P&gt;public function handle($request, Closure $next)&lt;BR /&gt;{&lt;BR /&gt;$response = $next($request);&lt;/P&gt;&lt;P&gt;$response-&amp;gt;headers-&amp;gt;set('Content-Security-Policy', "frame-ancestors 'self' dockmaster.geigerent.com *.authorize.net");&lt;/P&gt;&lt;P&gt;return $response;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it has no effect on the above error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what I am doing wrong here, I have been beating my head against this keyboard for some time now.&amp;nbsp; Can someone help?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 19:14:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-Response-from-iframecommunicatior-Laravel-5-8/m-p/68452#M41653</guid>
      <dc:creator>Stellar2019</dc:creator>
      <dc:date>2019-07-16T19:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: No Response from iframecommunicatior Laravel 5.8</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-Response-from-iframecommunicatior-Laravel-5-8/m-p/72384#M44706</link>
      <description>&lt;P&gt;I am having the same issue. I am using&amp;nbsp;iframecommunicatior&amp;nbsp; in .Net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the following error:&lt;/P&gt;&lt;P&gt;Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://localhost:44352') does not match the recipient window's origin ('&lt;A href="https://test.authorize.net" target="_blank"&gt;https://test.authorize.net&lt;/A&gt;').&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 04:32:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/No-Response-from-iframecommunicatior-Laravel-5-8/m-p/72384#M44706</guid>
      <dc:creator>M3QDev2020</dc:creator>
      <dc:date>2020-07-03T04:32:42Z</dc:date>
    </item>
  </channel>
</rss>

