Help

Re: Alternatives to fetch() and cookies for authentication?

984 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Aaron_Hanson
4 - Data Explorer
4 - Data Explorer

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 1
Jono_Prest
6 - Interface Innovator
6 - Interface Innovator

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.