useNitroOrigin()
A runtime safe way of accessing the Nitro origin.
A utility function to get the Nitro origin from the request headers.
This is a replacement for
The nitro origin acts as the canonical origin for the site when a
Usage
import { useNitroOrigin } from '#imports'
const origin = useNitroOrigin()
// https://www.example.com
Did this page help you?