I want hit my api which is running on 3090 port so added proxy key in package.js like below
"proxy": {
"/api/*": {
"target": "http://localhost:3090"
}
}
but i didn't worked why?
If you are using Webpack then try setting it in Webpack.config.js file
devServer: {
historyApiFallback:true,
proxy:{
"/api/*":"http://localhost:3090"
}
}