Method Not Allowed (#405)

When i delete a Record in GridView i got this Error on my Hosting Server.

Local its working without Problems.

What i dont understand is:

When i look at my Code:

public function behaviors()


        return [

            'verbs' => [

                'class' => VerbFilter::className(),

                'actions' => [

                    'delete' => ['POST'],






When i change to GET it works without error, but also without Delete Confirmation Prompt…

I have to Questions:

  • Why i get a Message -> allows only post, when it is Post?

  • How do i get an Delete Confirmation, when i change to GET

Sorry for my English and Thank you so much for help.

Is my Question that Stupid?

"When i change to GET it works without error"

Exactly what are you changing, url or yii behavior?

(guessing server restriction, not yii)