Zunnurain Badar
Zunnurain Badar

Reputation: 1042

How can I use ssl in my MEAN.io applicationo

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.

Upvotes: -1

Views: 109

Answers (1)

Yogesh
Yogesh

Reputation: 125

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

Upvotes: 0

Related Questions