2017-12-07 6 views
0
"proxy": { 
    "/auth/google": { 
    "target": "http://localhost:5001" 
    }, 
    "/api/user": { 
    "target": "http://localhost:5001" 
    } 
}, 

Antwort

1

das Problem gelöst, sollte ich Proxy haben in webpack.config.js

devServer: { 
historyApiFallback:true, 
proxy:{ 
     "/api/user":"http://localhost:5001" 
    } 
} 
Datei
Verwandte Themen