CSRF token on a web page with multiple forms?

房东的猫 提交于 2021-02-08 11:41:48

问题


When CSRF is enabled and a web page has multiple forms, will all the forms have the same csrf token or each form has a unique csrf token?

If this is framework dependent, then how does it work in the context of spring security?


回答1:


CSRF is not associated with form or something but to associated with each request.

Each individual request contains new csrf token.



来源:https://stackoverflow.com/questions/64422918/csrf-token-on-a-web-page-with-multiple-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!