Learn to fetch() resources in ASP.NET Core
Making Ajax requests from the client side JavaScript code to the server side resources is extremely common requirement in web applications. Traditionally developers used XMLHttpRequest (XHR) object to accomplish this task. Although you can continue to use XHR there is a better alternative - Fetch API.
http://www.binaryintellect.net/articles/099f9a47-a4f8-4a50-aeb7-b5fd884f2f7b.aspx