admin管理员组

文章数量:1130349

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

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

本文标签: Iframe is not working for wwwexamplecommyaccount