https://puresourcecode.com/net7/ajax-no-access-control-allow-origin-header-is-present-on-the-requested-resource-with-webapi/
$.ajax No 'Access-Control-Allow-Origin' header is present on the requested resource with WebAPI