Skip to content

Rails 7 Turbo using this gem (stripe-rails) produces Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://js.stripe.com') does not match the recipient window's origin #223

@jasonfb

Description

@jasonfb

Rails 7 with Turbo enabled interactions

if this gem is install and the Stripe JS is loaded at all, then all page navigations produce this JS error in the console:

(index):1 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://js.stripe.com') does not match the recipient window's origin

(the error doesn't actually block anything)

also reported here
stripe/react-stripe-js#188

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions