Hey there! Quick question about Functions built with `onRequestPost`. I need to retrieve the header

Hey there! Quick question about Functions built with onRequestPost. I need to retrieve the header sent but nothing is mentioned on the Pages Functions doc... I tried applying the Workers doc suggestion but when I do so on Wrangler:
export async function onRequestPost(context) {
  const customHeader = await context.headers.get('my-custom-header')
...
}

I get a Could not resolve "crypto"

Any body tried and achieve this using Pages Functions?

Thanks!
Was this page helpful?