Added Flask decorator to fix CORS.