报错如下:
Access to XMLHttpRequest at 'http://localhost:20001/game/api/test' from origin 'http://localhost:5678' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
报错如下:
Access to XMLHttpRequest at 'http://localhost:20001/game/api/test' from origin 'http://localhost:5678' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.