CodePudding user response:
Production environment cross-domain only two solutions1. Modify the server, set Access - Control - Allow - Origin to your domain name or client *
2. Modify the client, the use of domain name is the same as the server domain name,
Development environment can also be allowed to cross domain such as Chrome, set such as Chrome can set - disable - web - security - user - data - dir="C:/ChromeTempDir", in which "C:/ChromeTempDir" for a custom folder,