Skip to content

Commit

Permalink
enable cors on the controller
Browse files Browse the repository at this point in the history
  • Loading branch information
KrothuTheCoder committed Mar 19, 2024
1 parent 32d7f92 commit d2ac455
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DoSomethingService/Controllers/v1/SomethingController.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.ApplicationInsights;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;

namespace DoSomethingService.Controllers.v1;
Expand All @@ -9,6 +10,7 @@ namespace DoSomethingService.Controllers.v1;
[Route("api/v1/[controller]")]
[ApiController]
[ApiVersion("1.0")]
[EnableCors]
public class SomethingController : ControllerBase
{
private readonly ILogger<SomethingController> _logger;
Expand Down

0 comments on commit d2ac455

Please sign in to comment.