Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何使用app.injectCsrf和app.injectNonce #196

Open
alex-my opened this issue Sep 3, 2019 · 1 comment
Open

如何使用app.injectCsrf和app.injectNonce #196

alex-my opened this issue Sep 3, 2019 · 1 comment
Labels

Comments

@alex-my
Copy link

alex-my commented Sep 3, 2019

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

Current behavior

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

Expected behavior

@justquanyin
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants