Skip to main content

Alternatives to fetch() and cookies for authentication?

  • October 14, 2021
  • 1 reply
  • 30 views

Forum|alt.badge.img+1

Per the documentation, it appears that we can’t send cookies in headers for fech() commands. I’m trying to access an API with a GET request in which the only authentication method I have available is a session cookie. Does anyone know of another way to be able to make a cookie/session-based get request from within an airtable script/automation?

1 reply

  • Inspiring
  • 26 replies
  • November 5, 2021

Hi @Aaron_Hanson,

You should be able to set a cookie in your header on a fetch request from the airtable scripting app seeing as it’s just using your browser-native implementation of fetch. This is not the case with a scripting action that runs on an automation.

I think you will have to set up your own API function you can call from your automation to apply the cookie to the request headers.