Axios prompts for cross-domain but the returned request is 200and has data

axios request can return 200 and data is returned, but the console reports that the cross-domain
backend has confirmed that access-control-allow-origin is *, and there is no need for the front end to pass the header field except parameters in header
in addition, the project does not use vue scaffolding, so there is no webpack. Ask the Great God to guide Orz

Apr.01,2021

Google browser cross-domain-- args-- disable-web-security-- user-data-dir
shortcuts-attribute-add this after the target-remember to add a space before


the backend do not add access-control-allow-origin to *, add access-control-allow-origin: frontend request domain name


solve the problem that the backend boss has configured a reverse proxy Orz for nginx

Menu