diff --git a/keyserver/src/responders/landing-handler.js b/keyserver/src/responders/landing-handler.js
--- a/keyserver/src/responders/landing-handler.js
+++ b/keyserver/src/responders/landing-handler.js
@@ -103,6 +103,7 @@
const { renderToNodeStream } = ReactDOMServer;
async function landingResponder(req: $Request, res: $Response) {
+ const siweNonce = req.header('siwe-nonce');
const [{ jsURL, fontURLs, cssInclude }, LandingSSR] = await Promise.all([
getAssetInfo(),
getWebpackCompiledRootComponentForSSR(),
@@ -159,14 +160,20 @@
const routerBasename = basePath.replace(/\/$/, '');
const clientPath = routerBasename + req.url;
const reactStream = renderToNodeStream(
- ,
+ ,
);
reactStream.pipe(res, { end: false });
await waitForStream(reactStream);
+ const siweNonceString = siweNonce ? `"${siweNonce}"` : 'null';
// prettier-ignore
res.end(html`
+