I would like to ask why it is invalid to set up cookie on the server that python takes!

clipboard.png
you can see from the picture that the request header and response header are normal!
doesn"t see anything wrong, but there is no value in the browser"s cookie !
is there something wrong with it?
Note: ordinary html+js can be set, but applications built with dva are not allowed. What is the reason?


does set-cookie have Domain set?
if the request is sent using fetch, you need to add the credentials: 'same-origin' request header

Menu