CORS (Cross-Origin Resource Sharing)
The preflight mode of CORS is also supported by the API service.
The CORS interaction is handled by the web browser and the API service automatically, what means that you usually do not need to worry about technical details.
But, you can read more about CORS here.
JSONP (JSON with Padding)
JSONP can be enabled by the
_jsonp_callback argument, e.g.:
JSONP requests can use only the
GET HTTP method.
Also, JSONP does not work with HTTP status codes other than 200 (OK) (or 201 (Created)).
That's why the status code of JSONP API responses is always 200 (OK).
Therefore, in such cases you need to check the
status field of the API response for the proper HTTP status code (see also Response).
You can read more about JSONP here.