Skip to content

Commit

Permalink
fix: Allow Connection to Hubspot (#633)
Browse files Browse the repository at this point in the history
* fix: Allow Connection to Hubspot

* moving to default-src

* adding form-action
  • Loading branch information
ashin-czi authored Jul 6, 2023
1 parent d99f066 commit b8f9f5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/ecs/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,13 @@ def _before_adding_routes(app, app_config):

PLAUSIBLE_URL = "https://plausible.io"

HUBSPOT_JS_URL = "https://js.hsforms.net"

HUBSPOT_FORMS_URL = "https://forms.hsforms.com"

csp = {
"default-src": ["'self'"],
"default-src": ["'self'", HUBSPOT_FORMS_URL, HUBSPOT_JS_URL],
"form-action": ["'self'", HUBSPOT_FORMS_URL],
"connect-src": ["'self'", PLAUSIBLE_URL] + extra_connect_src,
"script-src": ["'self'", "'unsafe-eval'", PLAUSIBLE_URL] + script_hashes,
"style-src": ["'self'", "'unsafe-inline'"],
Expand Down

0 comments on commit b8f9f5e

Please sign in to comment.