Configure csurf in express and react

前端 未结 0 986
梦谈多话
梦谈多话 2020-12-25 08:07

I have the following code in my server.js

const csrfProtection = csrf({
  cookie: {
    httpOnly: true,
    secure: process.env.NODE_ENV === \'production\',
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题