问题
i am using Get method for form post but i am not interested if person could see if i am using yii framework. So instead of using YII_CSRF_TOKEN i need to make my own defined id name e.g. like only TOKEN.
I don't want to reveal what framework i am using , any kind of tip or help ???
回答1:
in your application config add the below code
'request'=>array(
'csrfTokenName'=>'YOUR_TOKEN_NAME_HERE',
),
来源:https://stackoverflow.com/questions/11809448/how-to-change-csrf-field-id-from-yii-csrf-token-to-any-other