Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (19.9k points)

Suppose my corporate proxy - >>http://proxy.comapny.com:8080 and Http url - >> http://15.232.2.216/api/get/data?elm=STATE (local network ip adderss) angular running on my ip - >> http://15.232.1.178:4200

http url ip address is changed depending on url input so not a solution to set proxy as ip address in proxy.config.json and run command ng serve --proxy-config proxy.config.js like

 "*/api" : {

        "target" : "http://15.232.2.216",

        "secure" : false,

        "changeOrigin": true

    } 

What is solution on above problem.

1 Answer

0 votes
by (25.1k points)
edited by

First with the help of your corporate network team assign static ip to your system. So IP won't change and you can use that url for setting up a proxy.

If you want to learn full-stack web development in detail, this Full Stack Developer Course is the perfect fit for you.

Browse Categories

...