Is either GET or POST more secure than the other?

前端 未结 27 2106
没有蜡笔的小新
没有蜡笔的小新 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:53

    The notion of security is meaningless unless you define what it is that you want to be secure against.

    If you want to be secure against stored browser history, some types of logging, and people looking at your URLs, then POST is more secure.

    If you want to be secure against somebody sniffing your network activity, then there's no difference.

提交回复
热议问题