Skip to main content

Background Tasks & WebSockets

CORS Configuration

0:00
LearnStep 1/3

CORS Setup

Cross-Origin Resource Sharing

python

Options Explained

  • allow_origins: List of allowed origins (use ["*"] for all)
  • allow_credentials: Allow cookies in cross-origin requests
  • allow_methods: HTTP methods to allow
  • allow_headers: Headers to allow in requests