trpc-panel icon indicating copy to clipboard operation
trpc-panel copied to clipboard

Define custom HTTP headers in code

Open mikemclin opened this issue 2 years ago • 3 comments

As a person viewing the tRPC Panel, I would like to be able to have custom tRPC HTTP headers added automatically instead of manually adding them via the tRPC Panel's UI, so I can save time from copying auth tokens from my app to the panel.

Would it be possible to add custom header values to the renderTrpcPanel function as an option? This way, the app that is rendering the panel can generate an Authorization header (or any other custom headers) when the panel is initiated.

mikemclin avatar Jan 04 '23 05:01 mikemclin