Skip to main content

No project description provided

Project description


pip install bottlecors and then

from bottle import Bottle
from bottlecors import add_cors, abort

app = Bottle()

def home():
    "This just shows 404 always"
    abort(404, 'msg')

# Cors needs to be added after
# all routes have been added to your app
app = add_cors(app)


  • Full blown cors
  • Sends docstring of function in options body
  • Adds only for routes which have already been added

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bottlecors, version 0.34
Filename, size File type Python version Upload date Hashes
Filename, size bottlecors-0.34-py3-none-any.whl (2.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size bottlecors-0.34.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page