Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wsgi_cors_middleware

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wsgi_cors_middleware

Cross Origin Resource Sharing (CORS) Middleware for WSGI Applications.

  • 0.0.2
  • PyPI
  • Socket score

Maintainers
1

WSGI-CORS-Middleware

Cross Origin Resource Sharing (CORS) Middleware for WSGI Applications.

Usage

Use the CorsMiddleware from wsgi_cors_middleware.

.. code:: python

from wsgi_cors_middleware import CorsMiddleware
application = CorsMiddleware(
    application,
    origin='*',
    methods=['POST', 'PUT'],
    headers=['Content-Type', 'Authorization']
)

Options


- ``origin``: URI that may access this application
- ``credentials``: indicates that the request can be made using credentials
- ``headers``: list of headers that may be used when accessing this application
- ``methods``: list of methods allowed to access this application
- ``expose_headers``: list of headers to be exposed to the browser
- ``max_age``: number of seconds a preflight request may be cached

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc