<?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 Hosted accept not working now server enforces X-Frame-Options: SAMEORIGIN in cybersource APIs</title>
    <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Hosted-accept-not-working-now-server-enforces-X-Frame-Options/m-p/87453#M1156</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We use the hosted accept to accept a payment, as per&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/features/accept-hosted.html" target="_blank" rel="noopener"&gt;https://developer.authorize.net/api/reference/features/accept-hosted.html&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/accept-sample-app" target="_blank" rel="noopener"&gt;https://github.com/AuthorizeNet/accept-sample-app&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This used to work absolutely fine. However, we have now configured the webserver to enforce these headers:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;HSTS&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;X-Content-Type-Options set with a static value of nosniff on all routes.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;X-Frame-Options: SAMEORIGIN to cover the CSP for frame-busting.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;X-XSS-Protection "1; mode=block"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The hosted accept handshake is failing with the browser displaying:&lt;/P&gt;&lt;P&gt;chromewebdata/:1 Refused to display '&lt;A href="https://nyu-langone-ce.staging.cm-hosting.com/" target="_blank" rel="noopener"&gt;https://nyu-langone-ce.staging.cm-hosting.com/&lt;/A&gt;' in a frame because it set 'X-Frame-Options' to 'sameorigin'.&lt;/P&gt;&lt;P&gt;Is there any solution to this?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 10:16:50 GMT</pubDate>
    <dc:creator>inkeyes</dc:creator>
    <dc:date>2023-09-01T10:16:50Z</dc:date>
    <item>
      <title>Hosted accept not working now server enforces X-Frame-Options: SAMEORIGIN</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Hosted-accept-not-working-now-server-enforces-X-Frame-Options/m-p/87453#M1156</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We use the hosted accept to accept a payment, as per&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/features/accept-hosted.html" target="_blank" rel="noopener"&gt;https://developer.authorize.net/api/reference/features/accept-hosted.html&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/accept-sample-app" target="_blank" rel="noopener"&gt;https://github.com/AuthorizeNet/accept-sample-app&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This used to work absolutely fine. However, we have now configured the webserver to enforce these headers:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;HSTS&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;X-Content-Type-Options set with a static value of nosniff on all routes.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;X-Frame-Options: SAMEORIGIN to cover the CSP for frame-busting.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;X-XSS-Protection "1; mode=block"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The hosted accept handshake is failing with the browser displaying:&lt;/P&gt;&lt;P&gt;chromewebdata/:1 Refused to display '&lt;A href="https://nyu-langone-ce.staging.cm-hosting.com/" target="_blank" rel="noopener"&gt;https://nyu-langone-ce.staging.cm-hosting.com/&lt;/A&gt;' in a frame because it set 'X-Frame-Options' to 'sameorigin'.&lt;/P&gt;&lt;P&gt;Is there any solution to this?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 10:16:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/Hosted-accept-not-working-now-server-enforces-X-Frame-Options/m-p/87453#M1156</guid>
      <dc:creator>inkeyes</dc:creator>
      <dc:date>2023-09-01T10:16:50Z</dc:date>
    </item>
  </channel>
</rss>

