JVerstry JVerstry - 1 year ago 101
Node.js Question

Redirect loop when activating CloudFlare

I am trying to put my website https://ligatures.net behind CloudFlare. Unfortunately, when I activate CloudFlare, I start getting a redirect loop (I am using Chrome).

I have tried to clear the cookies, as recommended, but it does not solve the issue. I am not having this issue when CloudFlare is not activated.

What is causing this and how to solve it? My application is a

node.js
application.

Answer Source

Apparently, this was a configuration issue. I was on Flexible SSL and changed it to full SSL.

My node.js app was receiving HTTP requests from CloudFlare and redirected to HTTPS, which CloudFlare converted back to HTTP, etc...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download