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 hashes)
Built Distribution
Close
Hashes for bobtail_cors-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac4d7b52a6b603f62d29568130074ea2c9dc26d47050af2073da4d244320faae |
|
MD5 | 140e7fe91617e483d3ba84d24035532d |
|
BLAKE2b-256 | 190edde5785bb6ca4dadd3e6d04b5ccfe7cb3d5f0f6809b8d535f69a61b98b40 |