Join us live Sept. 27 – How Sanity and Vercel powered Morning Brew's transformation –>

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: Get the most out of your content

Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Give your team exactly what they need to edit and publish their content with the customizable Sanity Studio. Get real-time collaboration out of the box. Sanity.io comes with a hosted datastore for JSON documents, query languages like GROQ and GraphQL, CDNs, on-demand asset transformations, presentation agnostic rich text, plugins, and much more.

Don't compromise on developer experience. Join thousands of developers and trusted companies and power your content with Sanity.io. Free to get started, pay-as-you-go on all plans.