<?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 CaptureContext Generate Failed: Target Origin[0] can't use http protocol unless the host is locahost in cybersource APIs</title>
    <link>https://community.developer.cybersource.com/t5/cybersource-APIs/CaptureContext-Generate-Failed-Target-Origin-0-can-t-use-http/m-p/91546#M2207</link>
    <description>&lt;P&gt;When I generate capture context on my local env by using Flex V2 for customer website server, we set target origin to&amp;nbsp; "&lt;A href="http://localhost:xxxx" target="_blank"&gt;http://localhost:xxxx&lt;/A&gt;" and it works correctly.&lt;/P&gt;&lt;P&gt;But for our payment testing server, we set target origin to "&lt;A href="http://pay.localhost:xxxx" target="_blank"&gt;http://pay.localhost:xxxx&lt;/A&gt;" and call "&lt;SPAN&gt;generateCaptureContext"&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;function. It return an error below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;stdClass Object
(
    [correlationId] =&amp;gt; df3a4c0c-6779-4d57-b92f-2fe5abab49ba
    [details] =&amp;gt; Array
        (
            [0] =&amp;gt; stdClass Object
                (
                    [location] =&amp;gt; targetOrigins
                    [message] =&amp;gt; Target Origin[0] cannot use http protocol unless the host is localhost
                )

        )

    [message] =&amp;gt; One or more validation errors occurred
    [reason] =&amp;gt; VALIDATION_ERROR
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;My question is: how can we set sub domain for the test when we have to test on multiple servers ?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Apr 2025 07:48:24 GMT</pubDate>
    <dc:creator>shist</dc:creator>
    <dc:date>2025-04-08T07:48:24Z</dc:date>
    <item>
      <title>CaptureContext Generate Failed: Target Origin[0] can't use http protocol unless the host is locahost</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/CaptureContext-Generate-Failed-Target-Origin-0-can-t-use-http/m-p/91546#M2207</link>
      <description>&lt;P&gt;When I generate capture context on my local env by using Flex V2 for customer website server, we set target origin to&amp;nbsp; "&lt;A href="http://localhost:xxxx" target="_blank"&gt;http://localhost:xxxx&lt;/A&gt;" and it works correctly.&lt;/P&gt;&lt;P&gt;But for our payment testing server, we set target origin to "&lt;A href="http://pay.localhost:xxxx" target="_blank"&gt;http://pay.localhost:xxxx&lt;/A&gt;" and call "&lt;SPAN&gt;generateCaptureContext"&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;function. It return an error below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;stdClass Object
(
    [correlationId] =&amp;gt; df3a4c0c-6779-4d57-b92f-2fe5abab49ba
    [details] =&amp;gt; Array
        (
            [0] =&amp;gt; stdClass Object
                (
                    [location] =&amp;gt; targetOrigins
                    [message] =&amp;gt; Target Origin[0] cannot use http protocol unless the host is localhost
                )

        )

    [message] =&amp;gt; One or more validation errors occurred
    [reason] =&amp;gt; VALIDATION_ERROR
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;My question is: how can we set sub domain for the test when we have to test on multiple servers ?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 07:48:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/CaptureContext-Generate-Failed-Target-Origin-0-can-t-use-http/m-p/91546#M2207</guid>
      <dc:creator>shist</dc:creator>
      <dc:date>2025-04-08T07:48:24Z</dc:date>
    </item>
  </channel>
</rss>

