-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Redirects #81
Comments
The third redirect is initiated by your application and out of scope of rack-ssl-enforcer, so the only chance i see is to modify your authentication's redirect by passing the protocol option, for example:
|
Ah, got it. I wasn't sure if this was the intended behavior or not. This probably won't work, because I need one domain specifically to enforce SSL, and the others to just use the standard HTTP protocol. It would be counter-intuitive to force the HTTPS protocol on all URLs within my app. |
I see. Maybe something like
Probably not the most elegant solution :) Anyway - i'm closing here... |
So I have SSL Enforcer configured in my application like so:
When I check the URL redirects in the browser when going to
http://photos.example.com
, I get the following redirect chain:Is there a way to eliminate step 3, as in going from:
My initial thought was that once a host is specified in the configurations, then it only enforces SSL/HTTPS protocol for that domain, and doesn't allow redirects to an HTTP protocol.
The text was updated successfully, but these errors were encountered: