From 388dd2a6a44ca5d26ec9de8b0e938e3f3f1787f2 Mon Sep 17 00:00:00 2001 From: Austin Story Date: Tue, 16 Jul 2019 10:11:38 -0500 Subject: [PATCH] docs: Update SSR Docs for serializer options. (#693) --- docs/api/ssr.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/api/ssr.md b/docs/api/ssr.md index 5518988..3b68a10 100644 --- a/docs/api/ssr.md +++ b/docs/api/ssr.md @@ -41,5 +41,8 @@ const js = ApolloSSR.exportStates(apolloProvider, options) attachTo: 'window', // Prefix for the keys of each apollo client state exportNamespace: '', + // By default we use sanitize js library to prevent XSS + // pass true here will perform a standard JSON.stringify on the states + useUnsafeSerializer: false, } ```