<?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: Custom Headers in CRM Cards in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Headers-in-CRM-Cards/m-p/1003428#M74891</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/673740"&gt;@Danielle_J&lt;/a&gt;, for the workaround.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2024 12:53:05 GMT</pubDate>
    <dc:creator>VigneshIyappan</dc:creator>
    <dc:date>2024-07-10T12:53:05Z</dc:date>
    <item>
      <title>Custom Headers in CRM Cards</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Headers-in-CRM-Cards/m-p/1001981#M74809</link>
      <description>&lt;P&gt;Is it possible to add custom headers with a static value in the CRM cards? I need to pass 'APP_NAME = HUBSPOT' as a header in the data fetch URL. Can you anyone suggest any workaround for this.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 13:00:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Headers-in-CRM-Cards/m-p/1001981#M74809</guid>
      <dc:creator>VigneshIyappan</dc:creator>
      <dc:date>2024-07-08T13:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Headers in CRM Cards</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Headers-in-CRM-Cards/m-p/1002220#M74817</link>
      <description>&lt;P&gt;A workaround would need to be implemented. I would suggest reviewing HubSpot's serverless functions functionality -&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/data/serverless-functions" target="_blank"&gt;https://developers.hubspot.com/docs/cms/data/serverless-functions. &lt;/A&gt;&lt;BR /&gt;If you do not have the required Hub that supports this, alternatives include using a middleware/setting up a proxy server.&lt;BR /&gt;You could write something like :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;exports.main = async (context, sendResponse) =&amp;gt; {
    const fetch = require('node-fetch');

    const url = 'https://actual-server.com/data';  // The actual server URL

    const response = await fetch(url, {
        headers: {
            'APP_NAME': 'HUBSPOT'
        }
    });

    const data = await response.json();

    sendResponse({
        statusCode: 200,
        body: JSON.stringify(data)
    });
};&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I hope this helps.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:00:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Headers-in-CRM-Cards/m-p/1002220#M74817</guid>
      <dc:creator>Danielle_J</dc:creator>
      <dc:date>2024-07-08T16:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Headers in CRM Cards</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Headers-in-CRM-Cards/m-p/1003428#M74891</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/673740"&gt;@Danielle_J&lt;/a&gt;, for the workaround.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 12:53:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Headers-in-CRM-Cards/m-p/1003428#M74891</guid>
      <dc:creator>VigneshIyappan</dc:creator>
      <dc:date>2024-07-10T12:53:05Z</dc:date>
    </item>
  </channel>
</rss>

