1
0
mirror of https://github.com/bitwarden/server synced 2025-12-27 21:53:24 +00:00

AllowAll cors option for identity server

This commit is contained in:
Kyle Spearrin
2017-03-16 22:04:02 -04:00
parent 7112496ff4
commit 79ea8fef37
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using IdentityServer4.Services;
using System.Threading.Tasks;
namespace Bit.Api.IdentityServer
{
public class AllowAllCorsPolicyService : ICorsPolicyService
{
public Task<bool> IsOriginAllowedAsync(string origin)
{
return Task.FromResult(true);
}
}
}