diff options
Diffstat (limited to 'samples/ProviderPortal/Global.asax.cs')
-rw-r--r-- | samples/ProviderPortal/Global.asax.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/samples/ProviderPortal/Global.asax.cs b/samples/ProviderPortal/Global.asax.cs index 091ea56..599bae2 100644 --- a/samples/ProviderPortal/Global.asax.cs +++ b/samples/ProviderPortal/Global.asax.cs @@ -8,6 +8,11 @@ namespace ProviderPortal { 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) {
|