Title: wp-admin doesn&#039;t work inside frames anymore
Last modified: August 20, 2016

---

# wp-admin doesn't work inside frames anymore

 *  Resolved [Exxodos](https://wordpress.org/support/users/exxodos/)
 * (@exxodos)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-work-inside-frames-anymore/)
 * Greetings,
 * I updated WP a few days ago, and got a “little” problem since then:
 * I use GroupOffice with a wordpress bridge, so wp-admin is included in the GroupOffice
   interface.
 * Worked fine until the update. Since then, everytime I try to access wp-admin 
   via GO, I get a white screen in Mozilla and a notification in Opera, that this
   page can’t be shown in a frame.
 * Kinda sucks.
 * Since this “feature” shown up after the last update, I’m quite sure that it can
   be undone, without downgrading WP.
 * Anyone has any clue?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [danuniversal](https://wordpress.org/support/users/danuniversal/)
 * (@danuniversal)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-work-inside-frames-anymore/#post-2332249)
 * [Hargopal](http://wordpress.org/support/profile/hargopal) solved this issue 5
   years ago here:
    [http://wordpress.org/support/topic/no-login-in-ie-in-frame](http://wordpress.org/support/topic/no-login-in-ie-in-frame)
 * You have to edit the file wp-login.php putting in a p3p license. 5 years ago 
   it was in line 9, now in WordPress 3.3.1 it is in line 43.
 * I had the same problem as you, I tried this solution with WordPress 3.3.1 recently,
   and it worked, I could access to the login page, and admin panel, using frameset.
 * Here is the solution:
 * Your original code should be something like this:
 *     ```
       function login_header($title = 'Log In', $message = '', $wp_error = '') {
       	global $error, $is_iphone, $interim_login, $current_site;
   
       	// Don't index any of these forms
       	add_action( 'login_head', 'wp_no_robots' );
       ```
   
 * You will have to include the following code there:
 * `header( "P3P: CP=CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT 
   DEM PRE");`
 * It should be right before the part that says “//Don’t index any of these forms”-
   the line 43-. So your final code will be something like this:
 *     ```
       function login_header($title = 'Log In', $message = '', $wp_error = '') {
       	global $error, $is_iphone, $interim_login, $current_site;
       header( "P3P: CP=CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE");
       	// Don't index any of these forms
       	add_action( 'login_head', 'wp_no_robots' );
       ```
   
 * I hope it work. I have not found any problem yet. If you find any problem, please
   tell us.
 *  [jstolpe](https://wordpress.org/support/users/jstolpe/)
 * (@jstolpe)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-work-inside-frames-anymore/#post-2332250)
 * I tried pasting this code into my wp blog but the wp-admin is still not showing
   up in iframe in any browser. It just comes up as a white screen. I am trying 
   to embed my whole wp site in a facebook iframe for a facebook app and all pages
   load fine in the iframe except the wp-admin pages are blank when I go to them
   in the facebook app. any ideas here?
 *  Thread Starter [Exxodos](https://wordpress.org/support/users/exxodos/)
 * (@exxodos)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-work-inside-frames-anymore/#post-2332251)
 * Ok, I found a solution for my problem.
    You have to do it after each upgrade 
   again – but it works for me:
 * 1) open wp-includes/default-filters.php
    2) find “frame” 3) you’ll get two lines:
 * add_action( ‘login_init’, ‘send_frame_options_header’, 10, 0 );
    add_action( ‘
   admin_init’, ‘send_frame_options_header’, 10, 0 );
 * 4) comment those lines out, upload the file again and it will work, after the
   cache has been refreshed.
 *  [jstolpe](https://wordpress.org/support/users/jstolpe/)
 * (@jstolpe)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-work-inside-frames-anymore/#post-2332252)
 * you are awesome! ive been looking for so long for a solution and this works!!
   thanks!
 *  Thread Starter [Exxodos](https://wordpress.org/support/users/exxodos/)
 * (@exxodos)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-work-inside-frames-anymore/#post-2332253)
 * I’m sorry that I forgot to post my solution here. Actually, I found it several
   days after I made this post… :-/
 * So I hope that this solution will help more users with the same problem!
 *  [aaronmorales](https://wordpress.org/support/users/aaronmorales/)
 * (@aaronmorales)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-work-inside-frames-anymore/#post-2332270)
 * I am using version 3.4 and when I go to wp-includes/default-filters.php to look
   for “frame” it does not exist on there. It’s not listed. It does state on top
   that “Not all of the default hooks are found in default-filters.php” so if this
   is true, where would I find “frames” to be able to fix this issue?
 *  [moziq](https://wordpress.org/support/users/moziq/)
 * (@moziq)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-work-inside-frames-anymore/#post-2332275)
 * **AWESOME!**
 * You are the MAN,… Thank Bro this ‘things’ is realy realy precious to all.
 * BUT what about risk? Is this a safe way to ride on?
 *  Thread Starter [Exxodos](https://wordpress.org/support/users/exxodos/)
 * (@exxodos)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-work-inside-frames-anymore/#post-2332276)
 * [@aaronmorales](https://wordpress.org/support/users/aaronmorales/): I have not
   updated, yet, so I don’t know, sorry.
 * [@moziq](https://wordpress.org/support/users/moziq/): As far as I read it’s only
   a weird kind of fraud protection, but honestly I have no idea. I use this workaround
   for about 9 month now on a big project and I have not recognized any problems,
   yet.
 *  [aaronmorales](https://wordpress.org/support/users/aaronmorales/)
 * (@aaronmorales)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-work-inside-frames-anymore/#post-2332277)
 * My issue has already been resolved [here](http://wordpress.org/support/topic/my-site-cannot-be-viewed-inside-frames?replies=4)
   but thank you.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘wp-admin doesn't work inside frames anymore’ is closed to new replies.

## Tags

 * [iframe](https://wordpress.org/support/topic-tag/iframe/)
 * [white screen](https://wordpress.org/support/topic-tag/white-screen/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)
 * [wpadmin](https://wordpress.org/support/topic-tag/wpadmin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 5 participants
 * Last reply from: [aaronmorales](https://wordpress.org/support/users/aaronmorales/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/wp-admin-doesnt-work-inside-frames-anymore/#post-2332277)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
