mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
allow cors origin wildcard
This commit is contained in:
parent
669a7c00d8
commit
19850631f6
@ -162,9 +162,7 @@ namespace Bit.Api
|
|||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
|
|
||||||
// Add Cors
|
// Add Cors
|
||||||
app.UseCors(policy => policy
|
app.UseCors(policy => policy.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
|
||||||
.WithOrigins(globalSettings.BaseServiceUri.Vault)
|
|
||||||
.AllowAnyMethod().AllowAnyHeader().AllowCredentials());
|
|
||||||
|
|
||||||
// Add authentication to the request pipeline.
|
// Add authentication to the request pipeline.
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
@ -94,9 +94,7 @@ namespace Bit.Events
|
|||||||
app.UseDefaultMiddleware(env);
|
app.UseDefaultMiddleware(env);
|
||||||
|
|
||||||
// Add Cors
|
// Add Cors
|
||||||
app.UseCors(policy => policy
|
app.UseCors(policy => policy.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
|
||||||
.WithOrigins(globalSettings.BaseServiceUri.Vault)
|
|
||||||
.AllowAnyMethod().AllowAnyHeader().AllowCredentials());
|
|
||||||
|
|
||||||
// Add authentication to the request pipeline.
|
// Add authentication to the request pipeline.
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
@ -94,9 +94,7 @@ namespace Bit.Notifications
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add Cors
|
// Add Cors
|
||||||
app.UseCors(policy => policy
|
app.UseCors(policy => policy.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
|
||||||
.WithOrigins(globalSettings.BaseServiceUri.Vault)
|
|
||||||
.AllowAnyMethod().AllowAnyHeader().AllowCredentials());
|
|
||||||
|
|
||||||
// Add authentication to the request pipeline.
|
// Add authentication to the request pipeline.
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
Loading…
Reference in New Issue
Block a user