CORS middleware for Bobtail
pip install bobtail-cors
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))