When developing websites and serializing certain information, we usually use session, cookies, nosql, and other technologies to ensure security, we have designed to prevent leeching in many cases on the server, which makes debugging on the local machine inconvenient, because the local machine is debugged using localhost: port number,
Website information is generally a formal domain name. After leeching starts, you cannot obtain it during local debugging. In VS2012, I used the "Debug by domain name" Method for the first time, which has brought us a good news for developing complex websites!
The following describes how to debug the domain name.
Set your domain name in a HOSTS file
127.0.0.1 dev.test.com
2. Create a domain name URL in IIS and set the address to the address of the VS Project
3. Modify the Project Properties of,
Four major achievements
Remote CDN resources are accessible because they are in the same domain.