Added CORS header 'Access-Control-Allow-Private-Network'

This commit is contained in:
Zefiro Anthragon 2025-09-04 19:47:05 +02:00 committed by GitHub
parent b0338e930b
commit a1835b9cd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,6 +79,7 @@ def create_cors_middleware(allowed_origin: str):
response.headers['Access-Control-Allow-Methods'] = 'POST, GET, DELETE, PUT, OPTIONS'
response.headers['Access-Control-Allow-Headers'] = 'Content-Type, Authorization'
response.headers['Access-Control-Allow-Credentials'] = 'true'
response.headers['Access-Control-Allow-Private-Network'] = 'true'
return response
return cors_middleware