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

[Bug] Console flooded with cookie warnings on PayPal component rerender #550

Closed
blagoySimandov opened this issue Aug 4, 2024 · 5 comments
Labels

Comments

@blagoySimandov
Copy link

blagoySimandov commented Aug 4, 2024

Console flooded with cookie warnings on PayPal component rerender

Library used

react-paypal-js

Describe the Bug

When the PayPal React component rerenders, the console is flooded with warnings related to third-party cookies.

Minimal Reproduction

  1. Implement PayPal React component in a React application
  2. Trigger a rerender
  3. Observe console for multiple cookie-related warnings

Actual Behavior

On each rerender of the PayPal component, the console displays multiple warnings about third-party cookies. The warnings state:

"Reading cookie in cross-site context will be blocked in future Chrome versions

Cookies with the SameSite=None; Secure and not Partitioned attributes that operate in cross-site contexts are third-party cookies. In future Chrome versions, reading third-party cookies will be blocked. This behavior protects user data from cross-site tracking."

Expected Behavior

The PayPal component should rerender without triggering any cookie warnings.

Environment

  • Node.js/npm: [v21.3.0]
  • Browser: Chrome [Version 127.0.6533.89 (Official Build) (64-bit)]
    image
@harshjaiswalprgm
Copy link

Update the react-paypal-js library.
Review and adjust PayPal SDK configuration.
Ensure cookies are set with appropriate attributes.
Control component rerenders to avoid excessive warnings.
Suppress warnings temporarily if needed for development.

Copy link
Contributor

github-actions bot commented Nov 5, 2024

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@github-actions github-actions bot added the Stale label Nov 5, 2024
@dafariski77
Copy link

bump

@github-actions github-actions bot removed the Stale label Nov 6, 2024
Copy link
Contributor

github-actions bot commented Feb 5, 2025

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@github-actions github-actions bot added the Stale label Feb 5, 2025
Copy link
Contributor

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants