Server side request is returning 403
Author: FlambeSkCreated Jan 18, 2024Updated Jun 26, 2025
Labelsbug
Version
@nuxtjs/strapi: 1.11.0 nuxt: 3.9.1
Reproduction
I am trying to fetch collection on server side. Problem is that I am still getting 403 on refresh (F5) site. Collection is allowed only for specific role. I can't make it public. When I am switching between routes, everything works perfectly. When I check the console, Nuxt is first calling collection API and then User api.
Here is example how I call my API:
const { data:tournaments } = await useAsyncData("tournaments", () =>
find<any>("tournaments", {
populate: '*',
filters: {
'active': 'true'
}
})
);
</script>
I also tried use middleware and get user there, but user was still undefined.
Source: nuxt-modules/strapi