Releases: aio-libs/aiohttp-cors
Releases · aio-libs/aiohttp-cors
aiohttp-cors 0.7.0 release
aiohttp-cors 0.6.0
Changes
- Support aiohttp views by
CorsViewMixin
(#145)
aiohttp-cors 0.5.3
Changes
- Fix
typing
being installed on Python 3.6.
aiohttp-cors 0.5.2
Changes
- Fix tests compatibility with
aiohttp
2.0.
This release and release v0.5.0 should work onaiohttp
2.0.
aiohttp-cors 0.5.1
Changes
- Enforce
aiohttp
version to be less than 2.0.
Neweraiohttp
releases will be supported in the next release.
aiohttp-cors 0.5.0
Changes
- Fixed compatibility issues with aiohttp 1.1
- Dropped support for aiohttp older than 1.1
v0.4.0
-
Fixed support with new Resources objects introduced in
aiohttp
0.21.0.
Minimum supported version ofaiohttp
is 0.21.4 now. -
New Resources objects are supported.
You can specify default configuration for a Resource and use
allow_methods
to explicitly list allowed methods (or*
for all
HTTP methods):# Allow POST and PUT requests from "http://client.example.org" origin. hello_resource = cors.add(app.router.add_resource("/hello"), { "http://client.example.org": aiohttp_cors.ResourceOptions( allow_methods=["POST", "PUT"]), }) # No need to add POST and PUT routes into CORS configuration object. hello_resource.add_route("POST", handler_post) hello_resource.add_route("PUT", handler_put) # Still you can add additional methods to CORS configuration object: cors.add(hello_resource.add_route("DELETE", handler_delete))
-
AbstractRouterAdapter
was completely rewritten to be more Router
agnostic.
v0.3.0
v0.2.0
Initial release
Merge pull request #12 from aio-libs/v0.1.0 v0.1.0 release