umi-server
umi-server copied to clipboard
How to pass server cookie to client side in ssr koa js ?
What happens?
I want to pass the server cookie to the client-side when server-side rendering.
Mini Showcase Repository(REQUIRED)
Provide a mini GitHub repository which can reproduce the issue. Use
yarn create umi
then upload to your GitHub
cookies.get('any')
How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context
- Umi Version: 2.12.7 Umi Server: 1.1.9
- Node Version: 10.15.2
- Platform: React