I would like to be able to put a website with Woo commerce in an iframe so that people buy products as if it were on my website, The website where the iframe goes does not have to be a WordPress installation. The problem is that when navigating inside the iframe in the tests that I have done, problems with directives "X-Frame-Options", "Access-Control-Allow-Origin"
and "Content-Security-Policy"
appear that do not allow navigation. How can this be resolved?
Question posted in Woocommerce
The official Woocommerce documentation can be found here.
The official Woocommerce documentation can be found here.
2
Answers
I have done it through a Wordpress plugin, I attach an image enter image description here
I think adding this in the PHP configuration works:
Header always edit Set-Cookie (. *) "$ 1; SameSite = None; Secure