2016-11-30 3 views

答えて

0

あなたがexpressを使用している場合、あなたが試すことができます:

app.get('/', (req, res, next) => { 
    if (req.protocol === 'https') 
    console.log(req.connection.getProtocol()); 
    else 
    console.log('Not SSL'); 
}); 
関連する問題