From d2ac4553002aecf162fd98a822bf037882ed89fb Mon Sep 17 00:00:00 2001 From: "Krothu@gmail.com" Date: Tue, 19 Mar 2024 10:12:33 +0000 Subject: [PATCH] enable cors on the controller --- DoSomethingService/Controllers/v1/SomethingController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DoSomethingService/Controllers/v1/SomethingController.cs b/DoSomethingService/Controllers/v1/SomethingController.cs index fd009ae..6b1d904 100644 --- a/DoSomethingService/Controllers/v1/SomethingController.cs +++ b/DoSomethingService/Controllers/v1/SomethingController.cs @@ -1,4 +1,5 @@ using Microsoft.ApplicationInsights; +using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Mvc; namespace DoSomethingService.Controllers.v1; @@ -9,6 +10,7 @@ namespace DoSomethingService.Controllers.v1; [Route("api/v1/[controller]")] [ApiController] [ApiVersion("1.0")] +[EnableCors] public class SomethingController : ControllerBase { private readonly ILogger _logger;