How to add Headers to tRPC route?
Does anyone know how I can pass custom headers when calling a tRPC route?
I would like to append custom headers when calling one of my routes i.e
import {api} from "~/utils/api";
const myRoute = api.myRouter.myFunc....
So whether its a get or a mutation i would like to append custom headers prior to making the call, does anyone know if this is possible?
I would like to append custom headers when calling one of my routes i.e
import {api} from "~/utils/api";
const myRoute = api.myRouter.myFunc....
So whether its a get or a mutation i would like to append custom headers prior to making the call, does anyone know if this is possible?
