am I able to see results for private documents because I am logged into Sanity, either through terminal / Chrome?

6 replies
Last updated: Sep 9, 2020
Just double-checking – am I able to see results for private documents (e.g. with ID
_id: order.pi_1HPZYkHirZKXXXXXXWawCXr
) because I am logged into Sanity, either through terminal / Chrome? Or is this accessible to anyone? e.g. when visiting a URL like… https://projectId.api.sanity.io/v1/data/query/ ............
Sep 9, 2020, 8:28 PM
If you use
withCredentials: true
in the client and are logged in to the studio in the same browser you will have access to private documents
Sep 9, 2020, 8:39 PM
try a private tab, to be sure?
Sep 9, 2020, 8:40 PM
ah yes sorry late night madness! private tab was fine and empty but still had never questioned it
Sep 9, 2020, 8:44 PM
Sometimes you just need to test in order to sleep properly at night 🙂
Sep 9, 2020, 8:46 PM
Sometimes you just need to test in order to sleep properly at night 🙂
Sep 9, 2020, 8:46 PM
ah yes sorry late night madness! private tab was fine and empty but still had never questioned it
Sep 9, 2020, 8:44 PM

Sanity.io – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Categorized in