Koa uniformly verifies whether the post request is the specified source request

problem description

koa uniformly verifies the permission of the post request, whether it is the specified source request

the environmental background of the problems and what methods you have tried

do not want to make changes based on the original, because there may be many Post requests.
needs to be extended again in the second parameter asynchronous function of the original router.post.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

  Design pattern  

Jun.17,2021
Menu