bobtail-cors-0.0.1
توضیحات
CORS middleware for Bobtail
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bobtail-cors-0.0.1 |
| نام | bobtail-cors |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Joe Gasewicz |
| ایمیل نویسنده | joegasewicz@gmail.com |
| آدرس صفحه اصلی | https://github.com/joegasewicz/bobtail-cors |
| آدرس اینترنتی | https://pypi.org/project/bobtail-cors/ |
| مجوز | - |
# Bobtail CORS
CORS middleware for Bobtail
### Install
```
pip install bobtail-cors
```
### Usage
The default CORS set by
```python
from bobtail_cors import BobtailCORS
app = Bobtail(routes=routes)
app.use(BobtailCORS())
```
If you require
```python
# Declare your CORS options
options = {
"origin": "http://nottoboard.com",
"headers": "Authorization, Content-Type",
"methods": "GET",
}
app.use(BobtailCORS(options=options))
```
نیازمندی
| مقدار | نام |
|---|---|
| - | bobtail |
نحوه نصب
نصب پکیج whl bobtail-cors-0.0.1:
pip install bobtail-cors-0.0.1.whl
نصب پکیج tar.gz bobtail-cors-0.0.1:
pip install bobtail-cors-0.0.1.tar.gz