1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 00:52:49 -05:00

adjust cors origin checks (#800)

* allow cors from bitwarden.com on cloud

* allow file:// cors for safari extension

* fix missing paren
This commit is contained in:
Kyle Spearrin
2020-06-27 15:08:50 -04:00
committed by GitHub
parent 448157b07c
commit 6bc7a3cdc0
6 changed files with 20 additions and 8 deletions

View File

@ -382,7 +382,7 @@ namespace Bit.Core.Utilities
}
services.AddTransient<ClientStore>();
services.AddTransient<ICorsPolicyService, VaultCorsPolicyService>();
services.AddTransient<ICorsPolicyService, CustomCorsPolicyService>();
services.AddScoped<IResourceOwnerPasswordValidator, ResourceOwnerPasswordValidator>();
services.AddScoped<IProfileService, ProfileService>();
services.AddSingleton<IPersistedGrantStore, PersistedGrantStore>();