diff --git a/src/eddn/Gateway.py b/src/eddn/Gateway.py index 1a49e9a..0e007a3 100644 --- a/src/eddn/Gateway.py +++ b/src/eddn/Gateway.py @@ -351,7 +351,8 @@ class EnableCors(object): name = 'enable_cors' api = 2 - def apply(self, fn, context): + @staticmethod + def apply(fn, context): """ Apply CORS headers to the calling bottle app.