Made a start of implementing CORS.