Browse Source

Allow X-Frame-Options: SAMEORIGIN

See: https://github.com/chamilo/chamilo-lms/commit/9c22ff0edac9cefb54b3bde2b69dc231d00627cd#commitcomment-17990216
jmontoyaa 8 years ago
parent
commit
5a2d3258ab
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/newscorm/learnpath.class.php

+ 2 - 2
main/newscorm/learnpath.class.php

@@ -10680,8 +10680,8 @@ EOD;
                 $headers = substr($response, 0, $httpCode['header_size']);
 
                 $error = false;
-                if (stripos($headers, 'X-Frame-Options: DENY') > -1 ||
-                    stripos($headers, 'X-Frame-Options: SAMEORIGIN') > -1
+                if (stripos($headers, 'X-Frame-Options: DENY') > -1
+                    //|| stripos($headers, 'X-Frame-Options: SAMEORIGIN') > -1
                 ) {
                     $error = true;
                 }