mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-27 21:52:14 +03:00
Gateway: Make the CORS apply() static
Quietens a PyCharm warning
This commit is contained in:
parent
dcce3bdc86
commit
fee5279c12
@ -383,7 +383,8 @@ class EnableCors(object):
|
|||||||
name = 'enable_cors'
|
name = 'enable_cors'
|
||||||
api = 2
|
api = 2
|
||||||
|
|
||||||
def apply(self, fn, context):
|
@staticmethod
|
||||||
|
def apply(fn, context):
|
||||||
"""
|
"""
|
||||||
Apply CORS headers to the calling bottle app.
|
Apply CORS headers to the calling bottle app.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user