Skip to content

Document the CSP directives required by the checkout flow - #105

Merged
aharoitx merged 1 commit into
5.1.xfrom
docs/csp-directives
Sep 21, 2026
Merged

aharoitx merged 1 commit into
5.1.xfrom
docs/csp-directives

Conversation

@aharoitx

Copy link
Copy Markdown
Contributor

Adds a Content Security Policy section to the README.

Reported in #80: with a CSP header in place, the BitPay modal hangs on
"Please wait". The script loads fine, the iframe is blocked, and nothing
surfaces the error.

Directives were collected empirically, using
Content-Security-Policy-Report-Only on a local WHMCS install, in both Modal
and Redirect, with a sandbox payment completed end to end.

  • script-src: needed in both modes, for bitpay.com and ajax.googleapis.com
  • frame-src: needed in Modal only
  • connect-src: not needed, the status polling happens inside the BitPay frame

@aharoitx
aharoitx merged commit 40a9e26 into 5.1.x Sep 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant