Make sure CORS is enabled on Bitpay's API

This commit is contained in:
nicolas.dorier
2019-01-29 18:20:18 +09:00
parent 0c5b5ff49c
commit 4f4d05b8cd
4 changed files with 5 additions and 9 deletions

View File

@@ -12,11 +12,13 @@ using BTCPayServer.Rating;
using Newtonsoft.Json;
using Microsoft.AspNetCore.Authorization;
using BTCPayServer.Authentication;
using Microsoft.AspNetCore.Cors;
namespace BTCPayServer.Controllers
{
[Authorize(AuthenticationSchemes = Security.Policies.BitpayAuthentication)]
[AllowAnonymous]
[EnableCors(CorsPolicies.All)]
public class RateController : Controller
{
RateFetcher _RateProviderFactory;