How protect my token in the browser inspector?

Hello everyone,
I am using a permanent access token to access my prismic-graphql api and it works but ... this access token is visible in the browser inspector when i make request.
Please, how can i hide my token ?
code

Hi @arnaudfgr. This is a good question. When making client-side queries where you want to hide your access tokens, then you'll need to set up a server-side API proxy. Here is an article that explains the basics of what this is:

There are plenty of articles & vidoes out there to help you create an API proxy. And at this point, I think many of the hosting solutions (Netlify, Vercel, etc.) also have features for this sort of thing.

Let me know if you have any other questions about this :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.