<?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 Re: Access-Control-Allow-Origin in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Access-Control-Allow-Origin/m-p/48765#M24501</link>
    <description>&lt;P&gt;Off topic question.&lt;/P&gt;&lt;P&gt;How are you hiding your transactionKey, LoginID? or stop it from reaching the broswer?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Nov 2014 15:59:47 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2014-11-14T15:59:47Z</dc:date>
    <item>
      <title>Access-Control-Allow-Origin</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Access-Control-Allow-Origin/m-p/48763#M24500</link>
      <description>&lt;P&gt;We have developed an application utilizing the Authorize.NET API implemented in JavaScript.&amp;nbsp; We have just finished testing (using the dev URL, &amp;nbsp;https://api&lt;STRONG&gt;test&lt;/STRONG&gt;.authorize.net/xml/v1/request.api) and all went well.&amp;nbsp; However once we started testing using the production API, we started getting cross-domain scripting errors.&amp;nbsp; We noticed that the headers on the dev API URL contain “Access-Control-Allow-Origin:*”.&amp;nbsp; However, the production API URL (&lt;A target="_blank" href="https://api.authorize.net/xml/v1/request.api)"&gt;https://api.authorize.net/xml/v1/request.api)&lt;/A&gt; is missing this header which makes cross domain communication via JavaScript impossible.&amp;nbsp; Has anyone else ran into this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These hearders are bleow. &amp;nbsp;Notice the the missing headers in the second example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Response Headers for &lt;A target="_blank" href="https://apitest.authorize.net/xml/v1/request.api"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;HTTP/1.1 200 OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Cache-Control: private&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Content-Type: application/xml; charset=utf-8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Server: Microsoft-IIS/7.5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;X-AspNet-Version: 2.0.50727&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;X-Powered-By: ASP.NET&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Access-Control-Allow-Origin: *&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Access-Control-Allow-Methods: GET,POST,OPTIONS&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Access-Control-Allow-Headers: x-requested-with,cache-control,content-type,origin,method&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Date: Fri, 14 Nov 2014 14:52:22 GMT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Content-Length: 365&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Age: 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Via: HTTPS/1.1 localhost.localdomain&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Response Headers for &lt;A target="_blank" href="https://api.authorize.net/xml/v1/request.api"&gt;https://api.authorize.net/xml/v1/request.api&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;HTTP/1.1 200 OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Cache-Control: private&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Content-Type: application/xml; charset=utf-8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Server: Microsoft-IIS/7.5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;X-AspNet-Version: 2.0.50727&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;X-Powered-By: ASP.NET&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Date: Fri, 14 Nov 2014 14:53:13 GMT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Content-Length: 365&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Age: 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Via: HTTPS/1.1 localhost.localdomain&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2014 15:41:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Access-Control-Allow-Origin/m-p/48763#M24500</guid>
      <dc:creator>00PureSleep00</dc:creator>
      <dc:date>2014-11-14T15:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Access-Control-Allow-Origin</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Access-Control-Allow-Origin/m-p/48765#M24501</link>
      <description>&lt;P&gt;Off topic question.&lt;/P&gt;&lt;P&gt;How are you hiding your transactionKey, LoginID? or stop it from reaching the broswer?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2014 15:59:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Access-Control-Allow-Origin/m-p/48765#M24501</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-11-14T15:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Access-Control-Allow-Origin</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Access-Control-Allow-Origin/m-p/48769#M24503</link>
      <description>&lt;P&gt;We were under the impression that the keys were specific to referrrals from the host, similar to a Google API Key. &amp;nbsp;We are working to make this a server side implementation now. &amp;nbsp;Thanks for the feedback.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2014 16:52:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Access-Control-Allow-Origin/m-p/48769#M24503</guid>
      <dc:creator>00PureSleep00</dc:creator>
      <dc:date>2014-11-14T16:52:18Z</dc:date>
    </item>
  </channel>
</rss>

