Why don't the modern browsers support PUT and DELETE form methods?

前端 未结 3 2015
伪装坚强ぢ
伪装坚强ぢ 2021-01-01 09:08

I just finished building a RESTful API for one of my latest apps. I also built a simple admin interface scaffolding class that will enumerate resources and build simple form

3条回答
  •  青春惊慌失措
    2021-01-01 09:39

    Some web frameworks (e.g. Ruby on Rails) get around that by including a hidden _method parameter in the form with the value of the "actual" method, e.g.:

    The framework then rewrites the request on the server side before processing to use the value of the _method parameter as the HTTP method.

    Don't know if this helps you.

提交回复
热议问题