简体   繁体   English

服务器在Heroku上时,JSON传输是否自动加密?

[英]Are JSON transfers automatically encrypted when the server is on Heroku?

I was thinking that I needed more secure ways to transfer data between my app and my server on Heroku. 我当时在想,我需要更安全的方式在应用程序和Heroku上的服务器之间传输数据。 I'm worried about MITM attacks. 我担心MITM攻击。 Then I noticed that the web server uses an https address. 然后我注意到Web服务器使用一个https地址。 Does this mean that the JSON I'm sending to the server is automatically encrypted? 这是否意味着我发送到服务器的JSON已自动加密? What about when the server sends JSON back to the client? 服务器何时将JSON发送回客户端怎么办?

If the link the JSON request goes to starts with https then yes. 如果链接是JSON请求,则以https开头,然后是。 JSON is just content sent over http/https and responses are sent over the same method as the query. JSON只是通过http / https发送的内容,而响应是通过与查询相同的方法发送的。

However, if you are on a webpage and there is an ajax call made in the background, then maybe not. 但是,如果您在网页上,并且在后台进行了ajax调用,则可能不会。

In all cases, it depends on where the http get request goes to: if it starts with https then you are fine. 在所有情况下,都取决于http get请求的去向:如果它以https开头,那么您就可以了。

It sounds like your saying the request for json data is made over https, in wich case you are fine. 听起来您说对json数据的请求是通过https提出的,在这种情况下,您还可以。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM