Cycle Redirection on CloudFlare Activation

I'm trying to put behind CloudFlare but unfortunately when I activate CloudFlare I start getting a redirect loop (I use Chrome).

I tried to clear the cookies as recommended, but this does not solve the problem and I do not have this problem when CloudFlare is not activated.

What causes this and how to solve it in my node.js application?

+6
source share
3 answers

This seems to be a configuration issue. I was on flexible SSL and changed it to full SSL.

My node.js application received HTTP requests from CloudFlare and redirected to HTTPS, which CloudFlare converted back to HTTP, etc.

+12
source

Do you use WordPress by accident? We have instructions on the redirect cycle after enabling SSL .

0
source

just change the SSL mode to strict.

0
source

Source: https://habr.com/ru/post/979188/


All Articles