最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin11PV0评论

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."

Post a comment

comment list (0)

  1. No comments so far