1 Answer

0 votes

Let’s say we have a Node.js backend server running on localhost:4040. To ensure it is proxyed in and accessible from the components, we can configure the vue.config.js file and include a devServer section as shown below: 

In the vue.config.js file: 

module.exports: {

devServer: {
proxy: {
‘/api’: { 
target: ‘http://localhost:4040/api’, 
changeOrigin: true 

Click here to read more about Vue JS
Click here to read more about Insurance

Related questions

+1 vote
asked May 9, 2020 by SakshiSharma
0 votes
asked Jun 24, 2020 in Azure by anonymous
0 votes
asked Mar 3, 2020 in DevOps by rajeshsharma
0 votes
asked Jan 2 in Python by SakshiSharma