Authentication built for Nuxt 3! Easily add authentication via OAuth providers, credentials or Email Magic URLs!
1.25k
stars
162
forks
source link
enh(#797): Determine if `baseUrl` is external and properly handle internal requests #856
Closed
zoey-kaiser closed 1 week ago
๐ Linked issue
closes #797
โ Type of change
๐ Description
This PR adds a check to determine if the provided
baseUrl
config entry is an external or internal API route. This check is done by:baseURL
includes ahost
baseURL
is assumed to be an internal Nuxt routebaseURL
host matches thehost
of the currentevent.req
host
was added that matches the URL of the application, then requests are handled as internal requests๐ Checklist