Skip to content

Commit

Permalink
docs: include CSP directives
Browse files Browse the repository at this point in the history
  • Loading branch information
markdumay committed Sep 28, 2024
1 parent 8bf4dac commit cfc1fb0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,23 @@ This module supports the following parameters (see the section `params.modules`
| portal | | The portal ID of the HubSpot account where you created the form. This is used to retrieve the form definition. |
| region | | The region of the portal where the form was created. This is used to retrieve the form definition. |

## Content Security Policy

HubSpot forms require several directives to be added to your Content Security Policy. See the [policy requirements][hubspot_csp] for more details. The following directives are required to enable correct form handling:

| Policy | Value |
|-------------------|------------------------------------------------------------------|
| script-src | 'self' *.hsforms.net *.hs-scripts.com *.google.com *.gstatic.com |
| connect-src | 'self' *.hsforms.com *.hubspot.com |
| frame-src | 'self' *.google.com |
| frame-ancestors | 'self' *.google.com |
| img-src | 'self' data: *.hsforms.net *.hsforms.com |

<!-- MARKDOWN LINKS -->
[hugo]: https://gohugo.io
[hinode_docs]: https://gethinode.com
[hubspot]: https://hubspot.com
[hubspot_csp]: https://knowledge.hubspot.com/domains-and-urls/ssl-and-domain-security-in-hubspot#content-security-policy
[repository]: https://github.com/gethinode/hinode.git
[repository_template]: https://github.com/gethinode/template.git
[conventionalcommits]: https://www.conventionalcommits.org
Expand Down

0 comments on commit cfc1fb0

Please sign in to comment.