Redirect loop when activating CloudFlare

2019-06-18 04:06发布

I am trying to put my website behind CloudFlare but 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 and I am not having this issue when CloudFlare is not activated.

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

3条回答
看我几分像从前
2楼-- · 2019-06-18 04:12

just change your SSL mode to strict.

查看更多
相关推荐>>
3楼-- · 2019-06-18 04:14

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...

查看更多
forever°为你锁心
4楼-- · 2019-06-18 04:31

Are you using WordPress by chance? We do have directions on the redirect loop after enabling SSL.

查看更多
登录 后发表回答