Skip to content

Commit

Permalink
Merge pull request #2600 from cisagov/rh/2341-andi
Browse files Browse the repository at this point in the history
ISSUE #2341: Enable ANDI on browser
  • Loading branch information
erinysong authored Aug 20, 2024
2 parents 21ecf77 + 4776592 commit 43097ce
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/registrar/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,18 @@
# strict CSP by allowing scripts to run from their domain
# and inline with a nonce, as well as allowing connections back to their domain.
# Note: If needed, we can embed chart.js instead of using the CDN
CSP_SCRIPT_SRC_ELEM = ["'self'", "https://www.googletagmanager.com/", "https://cdn.jsdelivr.net/npm/chart.js"]
CSP_CONNECT_SRC = ["'self'", "https://www.google-analytics.com/"]
CSP_INCLUDE_NONCE_IN = ["script-src-elem"]
CSP_DEFAULT_SRC = ("'self'",)
CSP_STYLE_SRC = ["'self'", "https://www.ssa.gov/accessibility/andi/andi.css"]
CSP_SCRIPT_SRC_ELEM = [
"'self'",
"https://www.googletagmanager.com/",
"https://cdn.jsdelivr.net/npm/chart.js",
"https://www.ssa.gov",
"https://ajax.googleapis.com",
]
CSP_CONNECT_SRC = ["'self'", "https://www.google-analytics.com/", "https://www.ssa.gov/accessibility/andi/andi.js"]
CSP_INCLUDE_NONCE_IN = ["script-src-elem", "style-src"]
CSP_IMG_SRC = ["'self'", "https://www.ssa.gov/accessibility/andi/icons/"]

# Cross-Origin Resource Sharing (CORS) configuration
# Sets clients that allow access control to manage.get.gov
Expand Down

0 comments on commit 43097ce

Please sign in to comment.