Is either GET or POST more secure than the other?

前端 未结 27 2500
没有蜡笔的小新
没有蜡笔的小新 2020-11-22 05:13

When comparing an HTTP GET to an HTTP POST, what are the differences from a security perspective? Is one of the choices inherently more secure than the other? If so, why?

27条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 05:44

    As previously some people have said, HTTPS brings security.

    However, POST is a bit more safe than GET because GET could be stored in the history.

    But even more, sadly, sometimes the election of POST or GET is not up to the developer. For example a hyperlink is always send by GET (unless its transformed into a post form using javascript).

提交回复
热议问题