Redirect loop when activating CloudFlare

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 08:57:30

问题


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?


回答1:


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




回答2:


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




回答3:


just change your SSL mode to strict.



来源:https://stackoverflow.com/questions/27322560/redirect-loop-when-activating-cloudflare

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!