Iframe is not working for www.example.commy-account

admin2025-06-05  3

Iframe is working fine for www.example, But its not working for www.example/my-account

I followed few tricks, Like: adding these codes:

remove_action( 'login_init', 'send_frame_options_header' );
remove_action( 'admin_init', 'send_frame_options_header' );

But still, it's showing the same error. Is there any proper solution in this case?

Iframe is working fine for www.example, But its not working for www.example/my-account

I followed few tricks, Like: adding these codes:

remove_action( 'login_init', 'send_frame_options_header' );
remove_action( 'admin_init', 'send_frame_options_header' );

But still, it's showing the same error. Is there any proper solution in this case?

Share Improve this question asked Dec 15, 2018 at 21:12 TazminurTazminur 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

I think that your web page is https (like: https://www.example/my-account) and the iframe was loaded via http. Try loading your web page in this way:

http://www.example/my-account

If the page is http, the iframe content must be http. That's why, you have to remove "s" from "https."

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749093655a316309.html

最新回复(0)