falcon-crossorigin 
A simple Falcon module for Cross-Origin Resource Sharing (CORS).
Install
pip install falcon-crossorigin
Usage
import falcon
from falcon_crossorigin import CrossOrigin
cross_origin = CrossOrigin(
allow_origins="https://app.example.com",
allow_methods="GET,POST",
allow_headers="Pragma,Expires,Cache-Control",
allow_credentials=True,
expose_headers="Link",
max_age=3600,
)
api = falcon.API(middleware=[cross_origin])
Credits
Port of Echo's CORS middleware.
Metadata
Release files for falcon-crossorigin 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| falcon-crossorigin-1.0.0.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| falcon_crossorigin-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / falcon-crossorigin-1.0.0.tar.gz
| Download URL | falcon-crossorigin-1.0.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca4d94c07d655b699809e1864e47102f83283d0255699abe2ed5e88b5f3bb766
|
|
BLAKE2b-256 checksum How to use checksums |
5b7ef657474083782124c723b73a26e74a1ff59c0c10f3a828a1acd068115d47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / falcon_crossorigin-1.0.0-py3-none-any.whl
| Download URL | falcon_crossorigin-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
587aed72e5df50084a23d6b1c516bdd6fdd6e04ec845c243171081413ffc70cb
|
|
BLAKE2b-256 checksum How to use checksums |
7b8713121c0c8655b48997a9b2186f996772d8dc3361b57e6db548d6776475d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|