Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_cors (0.04 sec)

  1. tests/test_tutorial/test_cors/test_tutorial001.py

    from fastapi.testclient import TestClient
    
    from docs_src.cors.tutorial001_py39 import app
    
    
    def test_cors():
        client = TestClient(app)
        # Test pre-flight response
        headers = {
            "Origin": "https://localhost.tiangolo.com",
            "Access-Control-Request-Method": "GET",
            "Access-Control-Request-Headers": "X-Example",
        }
        response = client.options("/", headers=headers)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  2. .github/workflows/docs.yml

        types: [opened, labeled, unlabeled, synchronize]
    
    permissions:
      contents: read
    
    env:
      GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
    
    jobs:
      test_docs:
        permissions:
          checks: write # for actions/upload-artifact
        runs-on: ubuntu-latest
        if: github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'documentation')
    
        steps:
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 12 23:30:30 UTC 2025
    - 987 bytes
    - Viewed (0)
Back to top