Adding a Cross Origin Resource Sharing (CORS) handler.