14

Currently, the only way to call the API from javascript is to use JSONP, but this can be cumbersome and has security issues. If the following header was included in all API responses, the API could be called through javascript in most browsers:

Access-Control-Allow-Origin: *

See this for more information. Similar features have already been enabled in Flash and Silverlight, and doing the same for javascript would be useful.

6

API V2 did this, we send down:

Access-Control-Allow-Credentials: false
Access-Control-Allow-Methods: GET, POST
Access-Control-Allow-Origin: *

With every response.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .