<?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 React App masked in Hubspot in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/React-App-masked-in-Hubspot/m-p/669115#M29670</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to have a stand alone react app be masked in a hubspot URL for example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mywebsite.com/jobs ---&amp;gt; will mask the below site&lt;/P&gt;&lt;P&gt;myotherwebsite.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will make it much easier for us to keep our main app seperated from our content site in hubspot, or if you guys got any other possible solutions that I'm overlooking that be great!&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 18:34:59 GMT</pubDate>
    <dc:creator>xxicay</dc:creator>
    <dc:date>2022-07-21T18:34:59Z</dc:date>
    <item>
      <title>React App masked in Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/React-App-masked-in-Hubspot/m-p/669115#M29670</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to have a stand alone react app be masked in a hubspot URL for example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mywebsite.com/jobs ---&amp;gt; will mask the below site&lt;/P&gt;&lt;P&gt;myotherwebsite.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will make it much easier for us to keep our main app seperated from our content site in hubspot, or if you guys got any other possible solutions that I'm overlooking that be great!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 18:34:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/React-App-masked-in-Hubspot/m-p/669115#M29670</guid>
      <dc:creator>xxicay</dc:creator>
      <dc:date>2022-07-21T18:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: React App masked in Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/React-App-masked-in-Hubspot/m-p/669327#M29679</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/421668"&gt;@xxicay&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like you want to try the &lt;A href="https://developers.hubspot.com/docs/cms/developer-reference/reverse-proxy-support" target="_blank" rel="noopener"&gt;reversed proxy&lt;/A&gt; that HubSpot offers (CMS Hub Enterprise). It allows you to do exactly what you are trying to achieve.&lt;/P&gt;
&lt;P&gt;The other solution is using a subdomain like jobs.mywebsite.com.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said, it is quite easy to use a React app inside a HubSpot website page, so you could also use a HubSpot website page and create a custom module where you load your app:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Index.js:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;import { h, render } from 'preact';
import App from './containers/App';

// Tell Babel to transform JSX into h() calls:
/** @jsx h */

const container = document.getElementById('js-jobs');

if (container) {
  render(
    &amp;lt;App /&amp;gt;,
    container,
  );
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Module.html:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;section id="js-jobs" class=""&amp;gt;
&amp;lt;/section&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 22 Jul 2022 06:23:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/React-App-masked-in-Hubspot/m-p/669327#M29679</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2022-07-22T06:23:53Z</dc:date>
    </item>
  </channel>
</rss>

