Response to preflight request doesn't pass access control check: No'Access-Control-All

Response to preflight request doesn't pass access control check: No'Access-Control-Allow-Origin

Solution:

Add configuration in the package.json file

  "proxy":"http://192.168.13.11:80"

Restart, the request is successful

What I requested is http://192.168.13.11 , you can change it to your own interface address.

Guess you like

Origin blog.csdn.net/chendongpu/article/details/114687026