<?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: Blocked by CORS Policy in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Blocked-by-CORS-Policy/m-p/490797#M24928</link>
    <description>&lt;P&gt;Haaa, exact,&lt;/P&gt;&lt;P&gt;that's me who appoligize to didn't see it.&amp;nbsp;&lt;BR /&gt;Ok so I will check from their side so and thank you for your check and answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 05:25:11 GMT</pubDate>
    <dc:creator>joan1</dc:creator>
    <dc:date>2021-09-07T05:25:11Z</dc:date>
    <item>
      <title>Blocked by CORS Policy</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blocked-by-CORS-Policy/m-p/486109#M24769</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I come here with one problem I saw few times on this forum but I didn't find any solutions which fit with my need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I explain the problem which is simple, I create a module with these two simple line of code I use inside a template and so on every pages then:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div id="wcb" class="carbonbadge"&amp;gt;&amp;lt;/div&amp;gt;
 &amp;lt;script src="https://unpkg.com/website-carbon-badges@1.1.3/b.min.js" defer&amp;gt;&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's not my code, it should do his job, get the page and return some value depend how I build the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I get the CORS policy problem :&amp;nbsp;&lt;/P&gt;&lt;P&gt;"has been blocked by CORS policy: 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."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;the different solution I saw where :&lt;/P&gt;&lt;P&gt;- use ajax form(in this case I even not sure it can be done like that, and we change a simple code to a complex ajax request to get a json if it has, get the value to finaly update myself the div)&lt;BR /&gt;- use a server side with your own code, same as above, change a simple request to a long home made developpment.&lt;/P&gt;&lt;P&gt;- Update the htaccess, on hubspot I'm even not sure it's possible, if it is I don't know where.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So at the end my point is if someone got a solution or an idea to keep the code as simple as now, so two line to call an external source and overpass that cors problem.&lt;BR /&gt;&lt;BR /&gt;Maybe I use it not correctly, actually the code I show before, I used it by creating a module and put these two line on the html part&amp;nbsp; of the module. I also call the module inside the partial footer to use it on every page. If it can give more detail about how I made it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help you can provide and if you need more detail, i'm here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 05:32:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blocked-by-CORS-Policy/m-p/486109#M24769</guid>
      <dc:creator>joan1</dc:creator>
      <dc:date>2021-08-27T05:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Blocked by CORS Policy</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blocked-by-CORS-Policy/m-p/489589#M24899</link>
      <description>&lt;P&gt;Thank you for your post&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/207035"&gt;@joan1&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;&amp;nbsp;and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;, I'm wondering if you could weigh in here. Would you be able to share your advice?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 08:59:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blocked-by-CORS-Policy/m-p/489589#M24899</guid>
      <dc:creator>natsumimori</dc:creator>
      <dc:date>2021-09-03T08:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Blocked by CORS Policy</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blocked-by-CORS-Policy/m-p/490632#M24925</link>
      <description>Sorry for the late response.&lt;BR /&gt;I checked their Gitlab Repo and it seems that the issue is not with HubSpot but with Website Carbon Badge as multiple people are reporting the same issue you are having: &lt;A href="https://gitlab.com/wholegrain/website-carbon-badges/-/issues/20" target="_blank"&gt;https://gitlab.com/wholegrain/website-carbon-badges/-/issues/20&lt;/A&gt;</description>
      <pubDate>Mon, 06 Sep 2021 19:16:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blocked-by-CORS-Policy/m-p/490632#M24925</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2021-09-06T19:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Blocked by CORS Policy</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blocked-by-CORS-Policy/m-p/490797#M24928</link>
      <description>&lt;P&gt;Haaa, exact,&lt;/P&gt;&lt;P&gt;that's me who appoligize to didn't see it.&amp;nbsp;&lt;BR /&gt;Ok so I will check from their side so and thank you for your check and answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 05:25:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blocked-by-CORS-Policy/m-p/490797#M24928</guid>
      <dc:creator>joan1</dc:creator>
      <dc:date>2021-09-07T05:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Blocked by CORS Policy</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Blocked-by-CORS-Policy/m-p/560203#M26916</link>
      <description>&lt;P&gt;Hello support,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have a nodejs/riot.js website running on javascript.&amp;nbsp; We use JSON to add contacts to Hubspot but we keep getting the Cors error. Any ways to fix that from the code?&lt;/P&gt;&lt;P&gt;It's kind or urgent.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 21:47:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Blocked-by-CORS-Policy/m-p/560203#M26916</guid>
      <dc:creator>CBourassa</dc:creator>
      <dc:date>2022-01-20T21:47:19Z</dc:date>
    </item>
  </channel>
</rss>

