You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
if we use init CORS in main app not work in subapp
File aiohttp_cors/mixin.py", line 22, in get_request_config
cors = request.app[APP_CONFIG_KEY]
File aiohttp/web_app.py", line 104, in __getitem__
return self._state[key]
KeyError: 'aiohttp_cors'
Hello,
if we use init CORS in main app not work in subapp
fix problem use config_dict https://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.Request.config_dict
cors = request.config_dict[APP_CONFIG_KEY]thanks!