web/webconfig.py
changeset 9571 aaf83cc07eed
parent 9504 71a11bca251d
child 9635 aaf099172bb9
equal deleted inserted replaced
9570:14452b344d19 9571:aaf83cc07eed
   245          {'type': 'string',
   245          {'type': 'string',
   246           'default': None,
   246           'default': None,
   247           'help': 'The static data resource directory path.',
   247           'help': 'The static data resource directory path.',
   248           'group': 'web', 'level': 2,
   248           'group': 'web', 'level': 2,
   249           }),
   249           }),
       
   250         ('access-control-allow-origin',
       
   251          {'type' : 'csv',
       
   252           'default': (),
       
   253           'help':('comma-separated list of allowed origin domains or "*" for any domain'),
       
   254           'group': 'web', 'level': 2,
       
   255           }),
       
   256         ('access-control-allow-methods',
       
   257          {'type' : 'csv',
       
   258           'default': (),
       
   259           'help': ('comma-separated list of allowed HTTP methods'),
       
   260           'group': 'web', 'level': 2,
       
   261           }),
       
   262         ('access-control-max-age',
       
   263          {'type' : 'int',
       
   264           'default': None,
       
   265           'help': ('maximum age of cross-origin resource sharing (in seconds)'),
       
   266           'group': 'web', 'level': 2,
       
   267           }),
       
   268         ('access-control-expose-headers',
       
   269          {'type' : 'csv',
       
   270           'default': (),
       
   271           'help':('comma-separated list of HTTP headers the application declare in response to a preflight request'),
       
   272           'group': 'web', 'level': 2,
       
   273           }),
       
   274         ('access-control-allow-headers',
       
   275          {'type' : 'csv',
       
   276           'default': (),
       
   277           'help':('comma-separated list of HTTP headers the application may set in the response'),
       
   278           'group': 'web', 'level': 2,
       
   279           }),
   250         ))
   280         ))
   251 
   281 
   252     def __init__(self, *args, **kwargs):
   282     def __init__(self, *args, **kwargs):
   253         super(WebConfiguration, self).__init__(*args, **kwargs)
   283         super(WebConfiguration, self).__init__(*args, **kwargs)
   254         self.uiprops = None
   284         self.uiprops = None