libb.cors_webpy
- cors_webpy(app, **kw)[source]
Wrap a web.py controller with CORS headers.
Especially useful for views using resources from many websites.
- Parameters:
app – web.py application instance.
kw – CORS options (origin, credentials, methods, headers, max_age, attach_to_all, automatic_options).
- Returns:
Decorator function.