浏览器调用list接口的问题

我想在浏览器中通过前端去调用列举资源(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.
请问是七牛不支持这样调用,还是我姿势不正确呢?

阅读 3k
1 个回答

你是直接通过GET请求去调用的list接口么?你把Access-Control-Allow-Origin设置为*试下呢。