trpc-panel
trpc-panel copied to clipboard
Define custom HTTP headers in code
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.