E
E
Evstegney Chachlyk2020-10-29 20:27:30
CORS
Evstegney Chachlyk, 2020-10-29 20:27:30

How to add CORS to web.View aiohttp?

When I try to add web.View I get an error:

ValueError: web view should be derived from aiohttp_cors.WebViewMixig for working with the library

5f9af928bb149351468580.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evstegney Chachlyk, 2020-10-29
@onime_ne_smotru

Add aiohttp_cors.CorsViewMixin to your webveiw inheritance

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question