-
-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CORS): improve cors middleware (#2326)
* typing: type app * typing: type websocket module * typing: type asgi.reader, asgi.structures, asgi.stream * typing: type most of media * typing: type multipart * typing: type response * style: fix spelling in multipart.py * style(tests): explain referencing the same property multiple times * style: fix linter errors * chore: revert behavioral change to cors middleware. * feat: improve cors header to properly handle missing allow headers The static resource will now properly supports CORS requests. Fixes: #2325 * chore: do not build rapidjson on PyPy
- Loading branch information
Showing
6 changed files
with
109 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The :class:`~CORSMiddleware` now properly handles the missing ``Allow`` | ||
header case, by denying the preflight CORS request. | ||
The static resource has been updated to properly support CORS request, | ||
by allowing GET requests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters