<?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: Serverless CORS Issue in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Serverless-CORS-Issue/m-p/997719#M74592</link>
    <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/778124"&gt;@SamRahaMable&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your message and sorry for the delay in the reply.&lt;BR /&gt;&lt;BR /&gt;I'd like to invite a couple of subject matter experts to this conversation: Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/341938"&gt;@MBERARD&lt;/a&gt;&lt;/SPAN&gt; and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt; do you have suggestions to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/778124"&gt;@SamRahaMable&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Also, if you are still having this issue, &lt;STRONG&gt;I would recommend connecting with HubSpot Technical Support&lt;/STRONG&gt;, as Support is included in your subscription and they will be able to provide real-time assistance for this matter, including hopping on a screenshare if necessary.&lt;BR /&gt;&lt;BR /&gt;Thank you and have a good day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2024 15:11:51 GMT</pubDate>
    <dc:creator>BérangèreL</dc:creator>
    <dc:date>2024-06-26T15:11:51Z</dc:date>
    <item>
      <title>Serverless CORS Issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Serverless-CORS-Issue/m-p/992390#M74332</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm getting a CORS error for trying to call my hubspot hosted serverless function from my hosted hubspot website page:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;'Access to fetch at https:&lt;/SPAN&gt;&lt;SPAN&gt;//mabletherapy.com/_hcms/api/submitResponses' from origin '&amp;nbsp;&lt;A href="https://www.mabletherapy.com" target="_blank" rel="noopener"&gt;https://www.mabletherapy.com&lt;/A&gt;' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm using the same protocol and therefore should not be getting this error according to your docs:&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;https:&lt;/SPAN&gt;&lt;SPAN&gt;//developers.hubspot.com/docs/cms/data/serverless-functions/reference#cors&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;{&lt;BR /&gt;"runtime": "nodejs18.x",&lt;BR /&gt;"version": "1.0",&lt;BR /&gt;"endpoints": {&lt;BR /&gt;"submitResponses": {&lt;BR /&gt;"method": "POST",&lt;BR /&gt;"file": "submitResponses.js"&lt;BR /&gt;},&lt;BR /&gt;"submitContactForm": {&lt;BR /&gt;"method": "POST",&lt;BR /&gt;"file": "submitContactForm.js"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My headers for my api calls are as follows:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;headers: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Content-Type"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"application/json"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Access-Control-Allow-Origin"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"*"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Is there a way to get around this error?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 13:16:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Serverless-CORS-Issue/m-p/992390#M74332</guid>
      <dc:creator>SamRahaMable</dc:creator>
      <dc:date>2024-06-14T13:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless CORS Issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Serverless-CORS-Issue/m-p/993030#M74349</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/778124"&gt;@SamRahaMable&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for asking the Community!&lt;BR /&gt;&lt;BR /&gt;I'd like to share these similar threads that might help you:&lt;BR /&gt;&lt;BR /&gt;- &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Access-to-XMLHttpRequest-blocked-by-CORS-policy/m-p/466853" target="_blank"&gt;Access to XMLHttpRequest blocked by CORS policy&lt;/A&gt;&lt;BR /&gt;- &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/API-Cors-issue/m-p/705374" target="_blank"&gt;API Cors issue&lt;/A&gt;&lt;BR /&gt;- &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/CORS-issue/m-p/640797" target="_blank"&gt;CORS issue&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I hope it helps!&lt;BR /&gt;&lt;BR /&gt;Have a lovely day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 07:04:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Serverless-CORS-Issue/m-p/993030#M74349</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-06-17T07:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless CORS Issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Serverless-CORS-Issue/m-p/994269#M74405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Bérangère,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for sharing those articles. After reviewing them thoroughly, I found that none of them are relevant to my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please provide some development support on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.s. I have added the domain &lt;A href="http://www.mabletherapy.com" target="_blank"&gt;www.mabletherapy.com&lt;/A&gt;&amp;nbsp;over to the advanced tracking under settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 08:49:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Serverless-CORS-Issue/m-p/994269#M74405</guid>
      <dc:creator>SamRahaMable</dc:creator>
      <dc:date>2024-06-19T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless CORS Issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Serverless-CORS-Issue/m-p/994385#M74412</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;could we get some dev support please?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 12:25:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Serverless-CORS-Issue/m-p/994385#M74412</guid>
      <dc:creator>SamRahaMable</dc:creator>
      <dc:date>2024-06-19T12:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless CORS Issue</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Serverless-CORS-Issue/m-p/997719#M74592</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/778124"&gt;@SamRahaMable&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your message and sorry for the delay in the reply.&lt;BR /&gt;&lt;BR /&gt;I'd like to invite a couple of subject matter experts to this conversation: Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/341938"&gt;@MBERARD&lt;/a&gt;&lt;/SPAN&gt; and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt; do you have suggestions to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/778124"&gt;@SamRahaMable&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Also, if you are still having this issue, &lt;STRONG&gt;I would recommend connecting with HubSpot Technical Support&lt;/STRONG&gt;, as Support is included in your subscription and they will be able to provide real-time assistance for this matter, including hopping on a screenshare if necessary.&lt;BR /&gt;&lt;BR /&gt;Thank you and have a good day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 15:11:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Serverless-CORS-Issue/m-p/997719#M74592</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-06-26T15:11:51Z</dc:date>
    </item>
  </channel>
</rss>

