Skip to content

joegasewicz/bobtail-cors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload Python Package Python package

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))