Skip to content

WritesCookiesMiddleware

const WritesCookiesMiddleware: NestTrpcMiddlewareClass

For every procedure that writes cookies, which must be a @Mutation: refuses a query, a subscription, a mutation that fails the CSRF checks and a streamed batch (httpBatchStreamLink) before the flow runs.