DEV Community

loading...

Discussion on: How to handle content previews from Sanity in Nuxt

Collapse
ovsw profile image
Ovi Savescu • Edited

OMG, I managed to completely miss / misread the part about "withCredentials: true", which does precisely what I need. I only realized after I came up with a dubious temporary workaround that involved passing the token in the query (don't do that).
To boot, I was logged out from the deployed sanity instance, only logged into the localhost one, so withCredentials wasn't working.

Facepalm!

Forem Open with the Forem app