简体   繁体   English

尽管我只设置了一个 HTTP express 应用程序,但使用 Glitch 自动提供的 HTTPS 是否安全?

[英]Is it safe to use HTTPS provided automatically by Glitch although I've only setup an HTTP express app?

I have created a simple http express app and uploaded it on glitch.我创建了一个简单的 http express 应用程序并将其上传到故障中。

The code is as follows:代码如下:

var app = require('express')();
var express = require('express');
var http = require('http').createServer(app);

app.use(express.static('./views'));

http.listen(3000, () => {
  console.log('listening on 3000');
});

When I choose view app on a new window option in glitch, the url is "** https://some-server-name.glitch.me/**"当我在故障中的新窗口选项上选择查看应用程序时,网址为“** https://some-server-name.glitch.me/**”

Though I have setup only HTTP protocol, I get HTTPS in url.虽然我只设置了HTTP协议,但我在 url 中得到了HTTPS Does this mean it is secure to use this website ?这是否意味着使用该网站是安全的?

HTTPS is typically terminated by a reverse proxy in front of your application server. HTTPS 通常由应用服务器前的反向代理终止。 You wouldn't want to have to care about handling HTTPS in node.您不想关心在 node.js 中处理 HTTPS。 If you can access the URL via HTTPS, then yes, that's secure up to the Glitch endpoint, which is the most important part of the route.如果您可以通过 HTTPS 访问 URL,那么是的,这对 Glitch 端点是安全的,这是路由中最重要的部分。

Answered by deceze in the comments section.在评论部分由deceze回答。 Would have been better if he had answered it directly !如果他直接回答就更好了!

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

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