You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I want to use nuxt-securitybasicAuth with nuxt-content, I have been a problem that every page rendered by nuxt-content have not found error (not by http code, but on the page). I think the problem is the basicAuth middleware is applied on different pages (include /api/* routes). And when nuxt-content makes a request to its content (docs) it does not pass authorization. Because Authorization header does not pass through internal request. That's what I'm guessing.
Maybe it's worth disabling basicAuth for /api/* routes?
Version
nuxt-security: 0.13.0
nuxt: 3.4.2
@nuxt/content: 2.6.0
Description
If I want to use nuxt-security
basicAuth
with nuxt-content, I have been a problem that every page rendered by nuxt-content have not found error (not by http code, but on the page). I think the problem is thebasicAuth
middleware is applied on different pages (include/api/*
routes). And when nuxt-content makes a request to its content (docs) it does not pass authorization. Because Authorization header does not pass through internal request. That's what I'm guessing.Maybe it's worth disabling
basicAuth
for/api/*
routes?Reproduction Link
Repository with this issue - link.
Steps to reproduce
Just clone my repository and start it.
What is Expected?
Default nuxt-content page with
Nuxt Content
h1 (file iscontent/index.md
).What is actually happening?
Document with not found message on the page:
Document not found, overwrite this content with #not-found slot in <ContentDoc>.
The text was updated successfully, but these errors were encountered: