Added CORS support and filtre by active status