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
I want to use the API token to request data from Strapi. I want to pass it into the bearer auth header.
I don't want to expose the token on the front end, so I was using Nuxt's API /server/api/*route* to intercept the request and add the token server-side. Yet, when I do this I lose the useStrapi() functions as they will always hit the Strapi API directly.
Can I customize this just for the requests somehow?
The text was updated successfully, but these errors were encountered:
philipimperato
changed the title
Can I hijack the strapi url for only the data requests, be keep the defaults on everything else?
Can I customize the Strapi url for only the data requests, yet keep the defaults on everything else?
Jan 10, 2024
I want to use the API token to request data from Strapi. I want to pass it into the bearer auth header.
I don't want to expose the token on the front end, so I was using Nuxt's API
/server/api/*route*
to intercept the request and add the token server-side. Yet, when I do this I lose theuseStrapi()
functions as they will always hit the Strapi API directly.Can I customize this just for the requests somehow?
The text was updated successfully, but these errors were encountered: