Avatar

Correct answer by
Employee

I am double-checking with some people to make sure there are no handy helper libs but essentially you will need to forward the headers from the action invoke to your secondary service call.

const res = await fetch(apiEndpoint,{
  headers:{
    "authorization": params.__ow_headers["authorization"],
    "x-api-key": params.__ow_headers["x-api-key"],
    "w-gw-ims-org-id": params.__ow_headers["w-gw-ims-org-id"],
    "x-api-key": params.__ow_headers["x-api-key"]
  }
})

 

View solution in original post