How can I use ssl in my MEAN.io applicationo

109 views Asked by At

I am a beginner.I just want to use SSL in my MEAN.io app.can someone tell me how can I use it in my mean.io app????
Thanks in advance.

1

There are 1 answers

1
Yogesh On

Use express-force-ssl by running

npm install express-force-ssl

In your server.js add the below code:

var forceSSL = require('express-force-ssl');

app.use(forceSSL);

Refer https://www.npmjs.com/package/express-force-ssl