https://github.com/d2verb/cors-sample
https://github.com/d2verb/cors-sample
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/d2verb/cors-sample
- Owner: d2verb
- Created: 2020-09-27T08:42:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T13:18:45.000Z (over 5 years ago)
- Last Synced: 2025-03-05T20:54:08.522Z (over 1 year ago)
- Language: HTML
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CORS samples
## How to use
```
$ poetry install
$ poetry shell
$ cd 01_simple
$ uvicorn api:app --port=8000
$ uvicorn web:app --port=8001
```
## Patterns
1. simple request
2. with preflight request
3. with cookie
4. with api key