Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I customize the Strapi url for only the data requests, yet keep the defaults on everything else? #384

Open
philipimperato opened this issue Jan 10, 2024 · 0 comments
Labels
question Further information is requested

Comments

@philipimperato
Copy link

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?

@philipimperato philipimperato added the question Further information is requested label Jan 10, 2024
@philipimperato 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant