Redirection from http to https (Pencilblue Elastic Beanstalk) -


we're trying redirect hits http https. application deployed on elastic beanstalk , it's allowing both http , https, want https.

i've tried adding server object in config.js make check

pb.config.server.ssl.use_x_forwarded && req.headers["x-forwarded-proto"] !== "https"

work in pencilblue.js, broke code on localhost live.

could please suggest way redirect http hits https?

thanks lot.

i have countered issue , got solution, can set use_x_forwarded true in config.js file.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -