Same-Origin Navigation Checker (utils/sameOriginNavigation.ts)

Validates whether a request is a same-origin navigation using Sec-Fetch-Site or Referer headers, used to CSRF-gate state-changing GET routes.

Repository
trigger.dev
Language
typescript
SPDX licence
Apache-2.0
Quality score (dated snapshot)
9.6/10
Category
auth

Review source and licence terms before reuse. View on the service