Fix for HTTPS bug
This commit is contained in:
@@ -62,11 +62,11 @@ namespace Swarmops
|
||||
|
||||
// Check for SSL and force it
|
||||
|
||||
if (!Request.IsSecureConnection || Request.Url.ToString().StartsWith("http://")) // Both are necessary, as some reverse proxies will https-ify an original nonsecure connection
|
||||
if ((!Request.IsSecureConnection) || Request.Url.ToString().StartsWith("http://")) // Both are necessary, as some reverse proxies will https-ify an original nonsecure connection
|
||||
{
|
||||
if (!Request.Url.ToString().StartsWith("http://dev.swarmops.com/") && !Request.Url.ToString().StartsWith("http://sandbox.swarmops.com") && !Request.Url.ToString().StartsWith("http://localhost:") && !Request.Url.ToString().StartsWith("http://cryptdb"))
|
||||
{
|
||||
// Response.Redirect(Request.Url.ToString().Replace("http:", "https:"));
|
||||
Response.Redirect(Request.Url.ToString().Replace("http:", "https:"));
|
||||
|
||||
// Only force this if set to force it in database
|
||||
// TODO: Make admin init task
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Swarmops.Pages.Security
|
||||
|
||||
// Check for SSL
|
||||
|
||||
if (!Request.IsSecureConnection || Request.Url.ToString().StartsWith("http://")) // Both are necessary, as some reverse proxies will https-ify an original nonsecure connection
|
||||
if ((!Request.IsSecureConnection) || Request.Url.ToString().StartsWith("http://")) // Both are necessary, as some reverse proxies will https-ify an original nonsecure connection
|
||||
{
|
||||
if (!Request.Url.ToString().StartsWith("http://dev.activizr.com/") && !Request.Url.ToString().StartsWith("http://localhost:") && Request.Url.ToString().StartsWith("http://activizr-"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user