NextJS + AppCheck -> Token is not part of every request

Skip to first unread message

Michal Melnikovič

Aug 18, 2023, 5:37:59 AMAug 18
to google-cloud-firestore-discuss
Hello guys,

I'm testing AppCheck on my website. It is currently running on around 15% of Verified requests. (I'm not enforcing it)

Originally I was thinking that number will increase as there is some caching in the browser and I updated to a newer version of JS SDK. But it seems to jump around 15% all the time.

I inspected to HTTP request made by a browser and I found out that SOME of my requests do have "x-firebase-appcheck" header inside of the form Data in a POST.

But ALL of my GET requests or SOME other POST don't have that header at all.

I used it inside of the NextJS project and init AppCheck in _app.tsx component

I'm not sure if I am doing something wrong or if this has something to do with the fact some routes are SSG / SSR?

Cheryl Lin

Aug 21, 2023, 2:01:28 PMAug 21
to google-cloud-firestore-discuss
Hi, since app check engineer is not inside this group, please file an issue in and label it app-check.
Reply all
Reply to author
0 new messages