I am learning about the CORS now.
I created a default asp.net Core MVC project.
Here is the code in JS:
$.ajax({ url: \'https://www.google.com\'