vercel / storage

Vercel Postgres, KV, Blob, and Edge Config
https://vercel.com/storage
Apache License 2.0
485 stars 53 forks source link

@vercel/blob feature request: custom headers on `retrieveClientToken` fetch #420

Open jordaaash opened 9 months ago

jordaaash commented 9 months ago

When using ngrok as recommended for local testing of client uploads, there's a default warning page that can be bypassed by sending a header.

If this code accepted request headers, it could be provided: https://github.com/vercel/storage/blob/293ebe7796538119fcbc793c9ffdea7c3ec91955/packages/blob/src/client.ts#L306-L309

There are probably other more common cases where this would also be helpful -- sending CORS headers, authorization tokens, etc.

correttojs commented 9 months ago

hey @jordansexton , thanks for the suggestion! I think that's a valuable point, we'll add it to our roadmap

w1png commented 4 months ago

+1 Really need that for my project