From af7eeb6d260a240c3ce4c21d267aac2f1409a649 Mon Sep 17 00:00:00 2001 From: Nicolargo Date: Sun, 11 Jan 2015 14:51:15 +0100 Subject: [PATCH] Remove unused method --- glances/outputs/glances_bottle.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/glances/outputs/glances_bottle.py b/glances/outputs/glances_bottle.py index d0d987ef..dded2b54 100644 --- a/glances/outputs/glances_bottle.py +++ b/glances/outputs/glances_bottle.py @@ -120,12 +120,6 @@ class GlancesBottle(object): # Return the static file return static_file('favicon.ico', root=self.STATIC_PATH) - def enable_cors(self): - """Enable CORS""" - response.headers['Access-Control-Allow-Origin'] = '*' - response.headers['Access-Control-Allow-Methods'] = 'PUT, GET, POST, DELETE, OPTIONS' - response.headers['Access-Control-Allow-Headers'] = 'Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token' - def _api_plugins(self): """ Glances API RESTFul implementation