Symfony 2 redirect using POST

后端 未结 3 1441
陌清茗
陌清茗 2021-01-04 05:16

In Symfony 2 I have the following code in my Controller:

// prepare to render the seller info panel
$response = array(
    \'data\' => $data,
);

// rende         


        
3条回答
  •  南笙
    南笙 (楼主)
    2021-01-04 05:53

    It's impossible to redirect a POST request because the browser would have to re-send the POST data (which it doesn't). What you should do instead in this case is use forwarding.

提交回复
热议问题