CORS middleware for Bobtail
Project description
Bobtail CORS
CORS middleware for Bobtail
Install
pip install bobtail-cors
Usage
The default CORS set by
from bobtail_cors import BobtailCORS
app = Bobtail(routes=routes)
app.use(BobtailCORS())
If you require
# Declare your CORS options
options = {
"origin": "http://nottoboard.com",
"headers": "Authorization, Content-Type",
"methods": "GET",
}
app.use(BobtailCORS(options=options))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bobtail-cors-0.0.1.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file bobtail-cors-0.0.1.tar.gz
.
File metadata
- Download URL: bobtail-cors-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0250165a9eb1aef0f93f1452d7bbede48fcdbf90149e5694008536bce7b0d078 |
|
MD5 | aa5e8a7d13c90e0a0416f90d50092211 |
|
BLAKE2b-256 | faa8d82e65a360bd5d9edb1e6e68c1646a33a21beee2629a6f676967e2e5cb68 |
File details
Details for the file bobtail_cors-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: bobtail_cors-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac4d7b52a6b603f62d29568130074ea2c9dc26d47050af2073da4d244320faae |
|
MD5 | 140e7fe91617e483d3ba84d24035532d |
|
BLAKE2b-256 | 190edde5785bb6ca4dadd3e6d04b5ccfe7cb3d5f0f6809b8d535f69a61b98b40 |