• Resolved Brksoft

    (@niyht)


    I cannot reach the cart page of woocommerce in the iframe page when entered from the chrome browser. Can this problem be solved? If it is something that cannot be solved, is there a system that I can use as an alternative to iframe?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Kaushik S. a11n

    (@kaushiksomaiya)

    Hi there!

    Thanks for your message.

    Could you tell us a bit more about your end goals? As in why you’d like to display the cart/checkout page in an iframe?

    If you are trying to load the cart/checkout page of your website (Ex: abc.com) on another website (Ex: xyz.com), the website abc.com will block requests from xyz.com due to the CORS policy.

    WooCommerce protects the checkout page from being included in an iframe by other websites/domains. (by setting X-Frame-Options directive to SAMEORIGIN)

    I wouldn’t recommend loading the checkout page this way, because even if you achieve it by modifying the CORS headers, the payment gateway might fail.

    I hope this helps! ??

    Thread Starter Brksoft

    (@niyht)

    Hello, we have a theme that we have installed on WordPress. We want to create a disposable link with an application for the store page and give it to our customers. If I need to mention the link event, these links are disposable, so you can enter once and not again. Of course, depending on this, this link hides the URL part above, so that the normal link is not exposed. Everything has been resolved so far, but when we enter via this link, we cannot add to the cart, we are stuck with a security obstacle. We think it is related to the Woocommerce plugin.Since we use iframes to reflect the website, chrome does not allow iframes at some points, we do not encounter any problems in the mozilla browser.

    • This reply was modified 2 years, 7 months ago by Brksoft.

    Hi @niyht

    We would need a little more information to better understand the issue:

    * Are you using a link following a general URL structure such as the following?
    https://mysite.com/?add-to-cart=74446&quantity=1

    * What is the security obstacle you’re seeing? Could you please provide us with a full screen screenshot of the error so that we can see what you are describing?

    Since we use iframes to reflect the website, chrome does not allow iframes at some points, we do not encounter any problems in the mozilla browser.

    Please note that, as explained above by @kaushiksomaiya, WooCommerce won’t allow the cart page to be loaded in an iframe placed on other websites/domains. If you’re trying to add products to cart via iframe, this falls outside our scope of support, since this forum is intended to provide support for the default functionality of the WooCommerce core plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to display the checkout page under the iframe?’ is closed to new replies.