Skip to content

[Bug] Missing trustedTypes.createPolicy declaration in paypal_js_sdk_v5 #680

@VBQ-GuillaumeMOULIN

Description

@VBQ-GuillaumeMOULIN

Library used

https://www.paypal.com/sdk/js
paypal_js_sdk_v5

🐞 Describe the Bug

Adding the CSP 'require-trusted-types-for: 'script'" to a site triggers the following error when the SDK attempts to inject the PayPal button.

Image

🤔 Expected Behavior

SDK should contain the trustedTypes.createPolicy declaration, so it can be added to the site "trusted-types" CSP declaration.

🌍 Environment

  • Node.js/npm: unknown
  • OS: Windows 11
  • Browser: Chrome (last version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions