<?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 CORS issue in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/304553#M28736</link>
    <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Our client is exploring to retrieve a Contact record via a custom form, and allow their ground staff to update a property of the record and submit back to HubSpot.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We are aware that in order to invoke HubSpot APIs, we need to use server-side languages. I am trying to find a workaround for the above scenario by "hosting" the custom form on a Landing Page, in hopes of using JS AJAX to retrieve a contact record, update a property and submit back to HubSpot.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With the above mentioned use case, is there any other workaround that you can share?&lt;/DIV&gt;</description>
    <pubDate>Thu, 28 Nov 2019 02:42:30 GMT</pubDate>
    <dc:creator>dannymurong</dc:creator>
    <dc:date>2019-11-28T02:42:30Z</dc:date>
    <item>
      <title>CORS issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/304553#M28736</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Our client is exploring to retrieve a Contact record via a custom form, and allow their ground staff to update a property of the record and submit back to HubSpot.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We are aware that in order to invoke HubSpot APIs, we need to use server-side languages. I am trying to find a workaround for the above scenario by "hosting" the custom form on a Landing Page, in hopes of using JS AJAX to retrieve a contact record, update a property and submit back to HubSpot.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With the above mentioned use case, is there any other workaround that you can share?&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Nov 2019 02:42:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/304553#M28736</guid>
      <dc:creator>dannymurong</dc:creator>
      <dc:date>2019-11-28T02:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: CORS issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/306375#M29029</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/112102"&gt;@dannymurong&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I apologize for the delay in getting back to you. I am wondering if you were able to resolve this or if you still need assistance on this matter?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sharon&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 10:23:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/306375#M29029</guid>
      <dc:creator>sharonlicari</dc:creator>
      <dc:date>2019-12-09T10:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: CORS issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/306376#M29030</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/21301"&gt;@sharonlicari&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I will still need assistance on this matter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 10:31:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/306376#M29030</guid>
      <dc:creator>dannymurong</dc:creator>
      <dc:date>2019-12-09T10:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: CORS issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/306388#M29031</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/112102"&gt;@dannymurong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the most part, the HubSpot APIs do not support&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;support cross-origin (CORS) AJAX requests&lt;/SPAN&gt;. Making the request client-side using JavaScript would expose any authentication you're using for the request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to use JavaScript/AJAX, you would need to make the request (excluding any&amp;nbsp;authentication) to an external server that could then add the needed authentication and make requests to HubSpot's APIs server-side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The exceptions to this rule are:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/methods/forms/submit_form_ajax" target="_blank"&gt;Submit form data (AJAX)&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;endpoint, which accepts CORS AJAX form submissions.&lt;/LI&gt;
&lt;LI&gt;Most GET requests for published HubDB tables. See the&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/hubdb/hubdb_overview" target="" rel=""&gt;HubDB API Overview&lt;/A&gt;&amp;nbsp;for more details.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope this helps clarify your next steps here!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 11:25:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/306388#M29031</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2019-12-09T11:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: CORS issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/312581#M29828</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt;&amp;nbsp;,Is there a way to resolve CORS issues for HubSpot Events HTTP API? I need to allow that for several origins. Only portalId is sent there in the URL - does not look like secret information.&lt;/P&gt;&lt;P&gt;Although such events are accepted by the hubspot server but I would like to avoid CORS warnings&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 16:28:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/312581#M29828</guid>
      <dc:creator>Voyager2</dc:creator>
      <dc:date>2020-01-17T16:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: CORS issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/312957#M29872</link>
      <description>&lt;P&gt;Updated thread for conversation:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Event-HTTP-API-and-cross-origin/m-p/312938/highlight/false#M29865" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/Event-HTTP-API-and-cross-origin/m-p/312938/highlight/false#M29865&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 09:23:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/312957#M29872</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2020-01-20T09:23:52Z</dc:date>
    </item>
  </channel>
</rss>

