diff --git a/Site5/Security/Login.aspx b/Site5/Security/Login.aspx index 9a862209..fcb5299b 100644 --- a/Site5/Security/Login.aspx +++ b/Site5/Security/Login.aspx @@ -217,7 +217,7 @@
diff --git a/Site5/Security/Login.aspx.cs b/Site5/Security/Login.aspx.cs index 16724454..b20f406c 100644 --- a/Site5/Security/Login.aspx.cs +++ b/Site5/Security/Login.aspx.cs @@ -122,7 +122,7 @@ namespace Swarmops.Pages.Security // only check client-side as many server sites de-SSL the connection before reaching the web server { if (!Request.Url.ToString().StartsWith ("http://dev.swarmops.com/") && - !Request.Url.ToString().StartsWith ("http://localhost:")) + !(Request.Url.ToString().StartsWith ("http://localhost:") && Debugger.IsAttached)) // Debugger.IsAttached is necessary, as link can be faked { Response.Redirect (Request.Url.ToString().Replace ("http:", "https:")); }