Skip to content

Instantly share code, notes, and snippets.

@akshaymittal143
Created August 20, 2018 19:42
Show Gist options
  • Save akshaymittal143/c00fdb52e80ee3a3accde37572cc9153 to your computer and use it in GitHub Desktop.
Save akshaymittal143/c00fdb52e80ee3a3accde37572cc9153 to your computer and use it in GitHub Desktop.
ng6 proxy.conf.json for spring boot
{
"/server": {
"target": "http://localhost:8080",
"secure": false,
"changeOrigin": true,
"logLevel": "debug",
"pathRewrite": {
"^/server" : ""
}
}
}
@akshaymittal143
Copy link
Author

  • add this file to the root project and update package.json -> ng serve --proxy-config proxy.conf.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment