-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate you don't have OPTIONS when cors=True
You'll get an error message from API gateway about a conflict exception which isn't that helpful. By adding it to the validation step here, we get a much clearer error message: ``` ValueError: Route entry cannot have both cors=True and methods=['OPTIONS', ...] configured. When CORS is enabled, an OPTIONS method is automatically added for you. Please remove 'OPTIONS' from the list of configured HTTP methods for: /badview ``` Closes #142.
- Loading branch information
Showing
3 changed files
with
39 additions
and
6 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
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