Monday, March 6, 2017

Using cloudflare flexible ssl option causes login form to refresh

I am using cloudflare's "flexible ssl" as an intermediary between client and my site.

After setting this up, I went to the browser and tried accessing my site via https:

https://example.com/login

and everything works. I fill in my login info and log in successfully and am not on http://example.com . I manually enter https://example.com/* where * is many other pages and it all works fine.

Now I want to redirect all requests to use the seemingly working https. So i go to my cloudflare account on their website and create a page rule : http://example.com/* to always use https.

Now I go to example.com/login and successfully redirected to https://example.com/login, I fill in my log in information and submit the login form , the page refreshes and I am back to https://example.com/login with an empty login form.

Anyone know what the problem is or how to help troubleshoot?

I am using laravel as a framework for the site and apache as the webserver.



via user3494047

Advertisement