Remove unused method

pull/491/head
Nicolargo 2015-01-11 14:51:15 +01:00
parent 8a51ba58aa
commit 4107fcf3fd
1 changed files with 0 additions and 6 deletions

View File

@ -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