It would be nice to provide an API to handle CORS (with "[preflight](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing#Preflight_example)" detection).