Add OPTIONS endpoint for writes to support CORS.