Failed to load http://192.168.1.6:3000/v1/banner: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
看到作者有设置 res.header("Access-Control-Allow-Origin", "*");
但是跑起来还是报错
Failed to load http://192.168.1.6:3000/v1/banner: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
看到作者有设置 res.header("Access-Control-Allow-Origin", "*");
但是跑起来还是报错