cookies – Getting WordPress to load inside iFrame

Question

I have an internal WordPress site that I’m trying to embed via iFrame. Currently I’m stuck on

Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.

I have set the following in wp-config.php:

define( 'WP_SAMESITE_COOKIE', 'None' );

And added the following to my .htaccess:

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin https://parenturl.com
    Header set X-Frame-Options ALLOWALL
</IfModule>

Header always edit Set-Cookie (.*) "$1; SameSite=None; Secure"

But still no success — any suggestions?

0
Kermit 2 months 2023-04-14T21:12:07-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse