Enable CORS for API in Sitecore
I recently needed to create a proxy API which needed to run off my Sitecore instance – and needed to support CORS – with this being hosted as a headless nextjs application. Here’s what we implemented: The controller was inherited from ApiController (System.Web.Http), and we added the following attributes (System.Web.Http.Cors) – on the action (you… Read More Enable CORS for API in Sitecore