Page 1 of 1

Lightbox store cart only works in Firefox

Posted: Sun Mar 21, 2021 11:19 pm
by grepper
I'm trying to use magnificpopup to open an external Square (Squareup) shopping site.  It works perfectly in Firefox, but not in Chrome or Edge.

In Firefox Add to Cart works OK and adds the item to the cart.

In Chrome and Edge Add to Cart does not work and nothing is added to the cart.

Any ideas?

Re: Lightbox store cart only works in Firefox

Posted: Mon Mar 22, 2021 1:07 am
by grepper
This is super easy to demonstrate:
Link a button to:
https://mechusa.square.site/product/kal ... cst=custom
Have the link open in magnificpopup lightbox.
Preview in Firefox, push the button and add the product to the cart. It works.
Preview in Chrome or Edge and do the same. Nothing is added to the cart.
It does the same thing in different Square (Squareup) stores and on different computers.
Thanks folks!

Re: Lightbox store cart only works in Firefox

Posted: Mon Mar 22, 2021 7:17 am
by Pablo
magnificpopup opens the page in an inline frame, like most other lightboxes.
The website most likely does not support to be displayed inside an inline frame for security reasons.

Note that this is unrelated to WWB.

Re: Lightbox store cart only works in Firefox

Posted: Mon Mar 22, 2021 3:21 pm
by grepper
Thank you for your reply Pablo. I'm not a web programmer so I don't understand the implications of inline frames.
Do you happen to know what Firefox does differently? If it's Square's website, why does it work OK in Firefox?
Thanks!

Re: Lightbox store cart only works in Firefox

Posted: Mon Mar 22, 2021 5:03 pm
by Pablo
It may be related to the "Same-origin_policy" setting of the browser.
https://developer.mozilla.org/en-US/doc ... gin_policy

Re: Lightbox store cart only works in Firefox

Posted: Mon Mar 22, 2021 5:10 pm
by grepper
Thank you for your assistance. Much appreciated.