<?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: Remove HttpOnly cookie using serverless in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-HttpOnly-cookie-using-serverless/m-p/849160#M67424</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I've developed a private, password-protected webpage on HubSpot. When a user enters the correct password, a cookie named "_key" followed by random numbers (e.g. 124794456884_key) is generated. If this cookie is manually deleted, the user is prompted to re-enter the password upon revisiting the page. I want to enable the manual deletion of this cookie when the user clicks a logout button or link. However, the cookie is HttpOnly, meaning it can only be removed server-side. I attempted to use a serverless function and "Set-Cookie", but it was unsuccessful.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2023 20:00:30 GMT</pubDate>
    <dc:creator>CBelga</dc:creator>
    <dc:date>2023-09-13T20:00:30Z</dc:date>
    <item>
      <title>Remove HttpOnly cookie using serverless</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-HttpOnly-cookie-using-serverless/m-p/848429#M67356</link>
      <description>&lt;P&gt;Has anyone here tried removing a HttpOnly cookie using the serverless "Set-Cookie" following this &lt;A href="https://developers.hubspot.com/docs/cms/data/serverless-functions/reference#set-cookies-from-your-endpoint" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is a sendResponse in my serverless.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sendResponse({ body: {message: `Cookie ${cookieName} deleted successfully`}, "Set-Cookie": `${cookieName}=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain=.hs-sites.com; httpOnly=true;secure`, statusCode: 200 }); &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 18:26:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Remove-HttpOnly-cookie-using-serverless/m-p/848429#M67356</guid>
      <dc:creator>CBelga</dc:creator>
      <dc:date>2023-09-12T18:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove HttpOnly cookie using serverless</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-HttpOnly-cookie-using-serverless/m-p/849153#M67422</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/346510"&gt;@CBelga&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thank you for the interesting question!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to invite some of our community members to the conversation. Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20261"&gt;@louischausse&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/479050"&gt;@DHolland&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;, do you have any recent experience you can share with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/346510"&gt;@CBelga&lt;/a&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 19:49:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Remove-HttpOnly-cookie-using-serverless/m-p/849153#M67422</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-09-13T19:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove HttpOnly cookie using serverless</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Remove-HttpOnly-cookie-using-serverless/m-p/849160#M67424</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I've developed a private, password-protected webpage on HubSpot. When a user enters the correct password, a cookie named "_key" followed by random numbers (e.g. 124794456884_key) is generated. If this cookie is manually deleted, the user is prompted to re-enter the password upon revisiting the page. I want to enable the manual deletion of this cookie when the user clicks a logout button or link. However, the cookie is HttpOnly, meaning it can only be removed server-side. I attempted to use a serverless function and "Set-Cookie", but it was unsuccessful.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 20:00:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Remove-HttpOnly-cookie-using-serverless/m-p/849160#M67424</guid>
      <dc:creator>CBelga</dc:creator>
      <dc:date>2023-09-13T20:00:30Z</dc:date>
    </item>
  </channel>
</rss>

