Add P3P header on authgroupex page.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 15 Jul 2012 14:26:39 +0000 (16:26 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 15 Jul 2012 14:26:57 +0000 (16:26 +0200)
IE refuses to log from an iframe otherwise...

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
modules/auth.php

index e222eeb..53250d6 100644 (file)
@@ -134,6 +134,8 @@ class AuthModule extends PLModule
             } else {
                 $page->assign('group', null);
             }
+            // Add a P3P header for compatibility with IE in iFrames (http://www.w3.org/TR/P3P11/#compact_policies)
+            header('P3P: CP="CAO COR CURa ADMa DEVa OUR IND PHY ONL COM NAV DEM CNT STA PRE"');
             return PL_DO_AUTH;
         }