【发布时间】:2013-01-28 13:53:41
【问题描述】:
FourSquare API 文档声明它支持 CORS。但是调用 /users/ 端点清楚地表明只支持 GET 请求:
curl -X OPTIONS -i "https://api.foursquare.com/v2/users/self/checkins?oauth_token=CLIENT_OAUTH_TOKEN"
HTTP/1.1 405 Method Not Allowed
Access-Control-Allow-Origin: *
Cache-Control: no-cache, private, no-store
Content-Type: application/json; charset=utf-8
Date: Wed, 13 Feb 2013 04:31:54 GMT
Expires: Wed, 13 Feb 2013 04:31:54 GMT
Pragma: no-cache
Server: nginx/1.2.1
Tracer-Time: 17
Content-Length: 104
Connection: keep-alive
{"meta":{"code":405,"errorType":"other","errorDetail":"This endpoint only supports GET."},"response":{}}
这只是这些 API 端点所特有的还是发生了一些变化?
【问题讨论】:
标签: javascript rest foursquare cors