Setting CORS for Content Delivery API
# help-with-umbraco
d
I have got UmBootstrap working as a Content Delivery API in an Azure Web App and the same page using the JSON in a static HTMX site. However, to do so I have had to allow an origin in Azure. How can I protect that origin so that only my static site can access the API?
Should also be able to use dataAttributes for more granular control once cors is added. https://learn.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-8.0#enable-cors-with-attributes
d
Second article is very handy thanks @Mike Chambers
85 Views