We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c18cd8 commit c278d3fCopy full SHA for c278d3f
README.md
@@ -129,3 +129,21 @@ public void ConfigureServices(IServiceCollection services)
129
});
130
}
131
```
132
+
133
+you can suppress the response WWW-Authenticate header (avoiding the browser to show a popup) for ajax requests by using a switch
134
135
+```c#
136
+public void ConfigureServices(IServiceCollection services)
137
+{
138
+ services.AddScoped<AuthenticationEvents>();
139
140
+ services
141
+ .AddAuthentication(BasicAuthenticationDefaults.AuthenticationScheme)
142
+ .AddBasicAuthentication(
143
+ options =>
144
+ {
145
+ options.Realm = "My Application";
146
+ options.SupressResponseHeaderWWWAuthenticateForAjaxRequests = true;
147
+ });
148
+}
149
+```
0 commit comments