Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Google Pay CSP Directives #914

Merged
merged 4 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Add `aria-hidden` attribute to generic card icon
- Add `aria-required` attribute to Hosted Fields
- Update browser-detection to v1.17.1
- Update Google Pay CSP Directives

## 1.40.2
- Fix issue where some assets for the Drop-In would not load from the CDN
Expand Down
1 change: 1 addition & 0 deletions jsdoc/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ If using [Google Pay](module-braintree-web-drop-in.html#~googlePayCreateOptions)
|-------------|-----------------|-----------------|
| script-src | pay.google.com | pay.google.com |
| style-src | 'unsafe-inline' | 'unsafe-inline' |
| connect-src | pay.google.com<br/>https://google.com/pay<br/>https://pay.google.com<br/>https://pay.google.com/about/redirect/ | pay.google.com<br/>https://google.com/pay<br/>https://pay.google.com<br/>https://pay.google.com/about/redirect/ |

The `style-src` directive is required so that the styles for the Google Pay button can be generated by the Google Pay SDK. You may omit this directive, so long as you include style rules for the Google Pay button to satisfy [Google's brand guidelines](https://developers.google.com/pay/api/web/guides/brand-guidelines#payment-buttons).

Expand Down
Loading