Adds support for CORS to the API