fix(csp): Add cdn.jsdelivr.net to local CSP policy for Swagger UI
Updated local.py CSP directives to match multitenancy.py changes. This allows Swagger UI assets to load in local development. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -15,18 +15,21 @@ CSP_SCRIPT_SRC = [
|
||||
"https://connect-js.stripe.com",
|
||||
"https://www.googletagmanager.com",
|
||||
"https://www.google-analytics.com",
|
||||
"https://cdn.jsdelivr.net", # Required for Swagger UI
|
||||
"blob:", # Required for Stripe
|
||||
]
|
||||
CSP_STYLE_SRC = [
|
||||
"'self'",
|
||||
"'unsafe-inline'", # Required for Stripe and many UI libraries
|
||||
"https://fonts.googleapis.com",
|
||||
"https://cdn.jsdelivr.net", # Required for Swagger UI
|
||||
]
|
||||
CSP_IMG_SRC = [
|
||||
"'self'",
|
||||
"data:",
|
||||
"https://*.stripe.com",
|
||||
"https://www.google-analytics.com",
|
||||
"https://cdn.jsdelivr.net", # Required for Swagger UI
|
||||
]
|
||||
CSP_CONNECT_SRC = [
|
||||
"'self'",
|
||||
|
||||
Reference in New Issue
Block a user