Chapter 13: Integrating a Vue.js Application with ASP.NET Core
Now, this is the time to make the Vue.js application talk to the REST API. In this chapter, you will integrate the Vue.js frontend application with the ASP.NET Core 5 backend application by installing a NuGet package and adding some code. You will also add a CORS policy in the backend to allow web apps from other domains to send requests to your backend.
We will cover the following topics:
- Putting the ASP.NET Core Web API and a Vue.js app together as a single unit
- Introducing Cross-Origin Resource Sharing or CORS
- Enabling a CORS policy in ASP.NET Core