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

Mixed Content error when trying to "Connect with Square". #177

Open
JacobSussan opened this issue Jul 15, 2024 · 5 comments
Open

Mixed Content error when trying to "Connect with Square". #177

JacobSussan opened this issue Jul 15, 2024 · 5 comments
Labels
priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. status: blocked The issue is blocked from progressing, waiting for another piece of work to be done. type: bug The issue is a confirmed bug.

Comments

@JacobSussan
Copy link

Describe the bug

Connect With Square button does not work.

Console log: Mixed Content: The page at 'x' was loaded over HTTPS, but requested an insecure resource 'http://squareup.com/t/cmtp_performance/pr_cross_product/d_partnerships/p_woocommerce/cn_oauth?client_id=x&route=oauth2/authorize?....' This request has been blocked; the content must be served over HTTPS.

To reproduce

  1. Click "Connect With Square"

Environment (please complete the following information):

  • WordPress Version 6.6
  • WooCommerce Version 9.1.2
  • WooCommerce Square Plugin Version 4.7.0
  • Chrome 126.0.6478.126/127 / 24 June 2024

Additional details

Backend is in an iFrame.

@vikrampm1 vikrampm1 added priority: high The issue/PR is high priority—if affect lots of customers substantially, but not critically. type: bug The issue is a confirmed bug. labels Jul 17, 2024
@imodouglas
Copy link

8511064-zen

@iamdharmesh
Copy link
Member

Hi @JacobSussan,

Thank you for reporting the issue.

I have checked this, but I am unable to reproduce it. Could you please provide more information, such as a screenshot or screencast? Also, you mentioned Backend is in an iFrame.. Could you please provide more information on it? This will help us understand the exact issue and identify its root cause.

During the connection, I noticed one redirect with HTTP (http://squareup.com/t/cmtp_performance/....), but it is not blocked by my browser, and I am able to connect successfully without any issues.

Thank you.
cc: @imodouglas

@JacobSussan
Copy link
Author

https://i.imgur.com/G1R6z1d.mp4

Setup is like this, but it happens whenever you load from an iFrame at all, as far as I can test.

WordPress lives on https://123.abc.com.

create a page on https://abc.com (no 123) with an iFrame to https://123.abc.com

Click on "Connect to Square" via iFrame.

Error occurs.

Tried on Chrome 126 & Firefox 128.0.2

@iamdharmesh
Copy link
Member

iamdharmesh commented Jul 29, 2024

Hi @JacobSussan,

Thank you for providing the details. I am able to reproduce the issue when loading wp-admin in the iframe instead of accessing it directly through the browser. It appears that Square initiates one HTTP redirect request. I am reaching out to Square support to get more information on this and will update you once we have further details.

Thank you.

@iamdharmesh iamdharmesh self-assigned this Jul 29, 2024
@vikrampm1 vikrampm1 added priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. and removed priority: high The issue/PR is high priority—if affect lots of customers substantially, but not critically. labels Aug 13, 2024
@jeffpaul jeffpaul added the status: blocked The issue is blocked from progressing, waiting for another piece of work to be done. label Sep 30, 2024
@jeffpaul
Copy link
Contributor

Marking this as blocked until we response from Square on proper handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. status: blocked The issue is blocked from progressing, waiting for another piece of work to be done. type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

5 participants