Is an HTTPS query string secure?

前端 未结 9 1372
耶瑟儿~
耶瑟儿~ 2020-11-22 03:52

I am creating a secure web based API that uses HTTPS; however, if I allow the users to configure it (include sending password) using a query string will this also be secure

9条回答
  •  鱼传尺愫
    2020-11-22 04:33

    I don't agree with the statement about [...] HTTP referrer leakage (an external image in the target page might leak the password) in Slough's response.

    The HTTP 1.1 RFC explicitly states:

    Clients SHOULD NOT include a Referer header field in a (non-secure) HTTP request if the referring page was transferred with a secure protocol.

    Anyway, server logs and browser history are more than sufficient reasons not to put sensitive data in the query string.

提交回复
热议问题