[How to Solve] Nodejs: interface error CORS error

Background: local Vue calls local nodejs interface and reports cross domain error.


first, check that nodejs service has been configured: “access control allow origin”, “*”

2、 Check that nodejs service has been configured: “access control allow headers”, “*”

	Access-Control-Allow-Headers Not for the * sign, be careful to check whether the front-end header and the value configured here is consistent, otherwise it will also report cross-domain. In particular, some projects require header pass-through parameters

Read More: