make sure we have cors for all of greenfield (#4760)

fixes #4758
This commit is contained in:
Andrew Camilleri
2023-03-10 15:20:11 +01:00
committed by GitHub
parent 06951a39c6
commit 7951dcada6
13 changed files with 27 additions and 7 deletions

View File

@@ -13,6 +13,7 @@ using BTCPayServer.Rating;
using BTCPayServer.Services.Rates;
using BTCPayServer.Services.Stores;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
using RateSource = BTCPayServer.Client.Models.RateSource;
@@ -21,6 +22,7 @@ namespace BTCPayServer.Controllers.GreenField
[ApiController]
[Route("api/v1/stores/{storeId}/rates/configuration")]
[Authorize(AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
[EnableCors(CorsPolicies.All)]
public class GreenfieldStoreRateConfigurationController : ControllerBase
{
private readonly RateFetcher _rateProviderFactory;