0
如何在不包含過濾器表單的頁面中使用過濾器操作(例如,通過提交或GET請求)?如何在Symfony中使用過濾器操作?
當我在下列URL參數傳遞
<module_name>/filter/action?module_filters[_csrf_token]=62a17afab45d56382974f9a495abee7c&module_filters[id]=3998
我得到了過濾器形式的錯誤:
csrf token: CSRF attack detected.
或
<module_name>/filter/action?module_filters[id]=3998
csrf token Required
當我執行
$filters -> disableCSRFProtection()
在我的模板中,沒有任何反應。