How to configure cross-domain requests in virtual hosts after vue2.0 packaging

the project has been packaged and uploaded to the host space, but there is a cross-domain problem. Baidu said to configure what Nginx server and so on, but the virtual host I bought has already been built, and I don"t know how to configure cross-domain

.

this is the information of the virtual host I bought


:

Thank you for your answers.

May.07,2022

whether the foreground code and background code are not on the same host


this is an error report, not a cross-domain error. If 404, let's see whether the online interface you have packaged and configured is correct. In addition, let's see if the domain name is accessible

.
Menu