Is it possible to configure the Nitro server to only accept requests from the frontend?
Original message was deleted
nitro key in the Nuxt configuration to set various Nitro-specific options. This allows for customization of the Nitro server behavior, although the exact option for restricting access is not mentioned. Nitro Config (https://nuxt.com/docs/guide/directory-structure/server#nitro-config)cors option in route rules, which can be used to control Cross-Origin Resource Sharing. While this doesn't directly restrict access to only the frontend, it can be used to manage which origins are allowed to make requests to your server. Route Rules (https://nuxt.com/docs/guide/concepts/rendering#route-rules)noVueServer that disables the Vue server renderer endpoint within Nitro. While this doesn't exactly match your requirement, it shows that there are ways to modify Nitro's behavior. noVueServer (https://nuxt.com/docs/guide/going-further/experimental-features#novueserver)corsnoVueServer