umi-server icon indicating copy to clipboard operation
umi-server copied to clipboard

How to pass server cookie to client side in ssr koa js ?

Open wmtjaychhatrola opened this issue 5 years ago • 0 comments

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

wmtjaychhatrola avatar Jan 07 '20 11:01 wmtjaychhatrola