拜访后端域名提醒:The ‘Access-Control-Allow-Origin’ header contains multiple values ‘http://localhost:8080, *’, but only one is allowed.
response header 能够看到 Access-Control-Allow-Origin 有俩个,这是因为 web 框架中也设置了跨域返回导致的,把 flask_cors 插件去掉就是了
拜访后端域名提醒:The ‘Access-Control-Allow-Origin’ header contains multiple values ‘http://localhost:8080, *’, but only one is allowed.
response header 能够看到 Access-Control-Allow-Origin 有俩个,这是因为 web 框架中也设置了跨域返回导致的,把 flask_cors 插件去掉就是了