- vue-cli sets cross-domain proxy, local access is normal, and the online address is 404. What is the reason for this?
Cross-domain proxy settings in vue-cli:
Cross-domain proxy settings in vue-cli:
the development environment can use the proxy because it starts the development server and can forward requests to the interface.
online is packaged as html deployment, and your static site will not forward requests. You can use nginx as an offline proxy
this is a cross-domain proxy in the development environment, and the online environment does not work. Can you use nginx, or background interface to set cors
cross-domain? Direct axios
Previous: Flex layout scroll bar
the following figure shows the register method. Send the post request to submit data through axios, and print out the submission result . network cannot receive the input data. What happens? Solve ...