Should I use GET or POST when requesting sensitive data?

后端 未结 6 529
野性不改
野性不改 2021-02-04 18:51

Should I use GET or POST for retrieving sensitive data, given that:

  • The response will contain sensitive data.
  • There are side-eff
6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-04 19:19

    I would suggest using POST, not for any real technical reason, like side-effects, but rather because servers are often configured to watch POST calls more, and many off the shelf security modules consider POST as the place where the action happens.

    Thats not really a great technical reason, but I would be interested in seeing what others think.

提交回复
热议问题