diff options
Diffstat (limited to 'samples/RelyingPartyPortal/Global.asax.cs')
-rw-r--r-- | samples/RelyingPartyPortal/Global.asax.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/samples/RelyingPartyPortal/Global.asax.cs b/samples/RelyingPartyPortal/Global.asax.cs index eb61da9..259512f 100644 --- a/samples/RelyingPartyPortal/Global.asax.cs +++ b/samples/RelyingPartyPortal/Global.asax.cs @@ -8,6 +8,11 @@ namespace ConsumerPortal { public class Global : System.Web.HttpApplication {
internal static StringBuilder LogMessages = new StringBuilder();
+ public Global() {
+ // since this is a sample, and will often be used with localhost
+ DotNetOpenId.UntrustedWebRequest.WhitelistHosts.Add("localhost");
+ }
+
public static log4net.ILog Logger = log4net.LogManager.GetLogger(typeof(Global));
protected void Application_Start(object sender, EventArgs e) {
|