beidou icon indicating copy to clipboard operation
beidou copied to clipboard

如何使用app.injectCsrf和app.injectNonce

Open alex-my opened this issue 6 years ago • 1 comments

  • Node Version:
  • Beidou Version:
  • Plugin Name And Version:
  • React/ReactDOM Versions:
  • Platform:
  • Mini Showcase Repository:
  • Other Info:

Current behavior

看源码是传入服务端渲染之后的字符串,在哪里可以得到这个字符串,目前我是手动在Viewrender函数中添加nonce

Expected behavior

alex-my avatar Sep 03 '19 03:09 alex-my

beidou-view 没有声明依赖 egg-security,并且使用的render后直接把结果给response.body,所以现在应该是没办法支持 app.injectCsrfapp.injectNonce 的,这个功能点我们评估考虑一下

justquanyin avatar Sep 03 '19 06:09 justquanyin