I do ajax request from js code. The problem is that during debugging, you have to substitute the address to which I am sending ajax request to localhost, and when I publish a project on the server I specify the server ip. You have to make changes to the js code every time. Tell me how to properly organize this business, so that it is done automatically. As IDE I use Visual Studio 2015.

    0