Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我jquery ui dialog用来显示表格。csrf token不幸的是,这个函数清除了我表单中的隐藏输入。我可以以某种方式强制对话框不清除此字段,还是我必须将此令牌存储在某处并自己设置正确的字段?
jquery ui dialog
csrf token
非理想情况,但你为什么不为有问题的视图禁用 CSRF 保护?或者你在这种对话框中有很多表格吗?
或者,为什么不让一些 JS 抓取令牌,将其停放在 DOM 中的其他位置,然后在所有其他活动完成后重写有问题的函数以将令牌输入克隆回其原始位置?