我想在浏览器中通过前端去调用列举资源(list)接口,打算通过CORS for XHR跨域,但是浏览器报错XMLHttpRequest cannot load http://rsf.qbox.me/list?xxxxxxxx No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxxxxxx' is therefore not allowed access. The response had HTTP status code 401.
请问是七牛不支持这样调用,还是我姿势不正确呢?
你是直接通过
GET
请求去调用的list接口么?你把Access-Control-Allow-Origin
设置为*
试下呢。