Skip to content

Commit b0041b6

Browse files
committed
Internal - Add documentation about X-Frame-Options in configuration.dist.php
1 parent 5dd7561 commit b0041b6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

main/install/configuration.dist.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,17 @@
463463
// X-Frame-Options tells the browser whether you want to allow your site to
464464
// be framed or not. By preventing a browser from framing your site you can
465465
// defend against attacks like clickjacking.
466-
// Recommended value "SAMEORIGIN".
466+
// If defining a URL here, it should define the URL(s) from which your content
467+
// should be visible, not the URLs from which your site accepts content.
468+
// For example, if your main URL (root_web above) is https://11.chamilo.org/,
469+
// then this setting should be: 'ALLOW-FROM https://11.chamilo.org'.
470+
// These headers only apply to pages where Chamilo is responsible of the HTTP
471+
// headers generation (i.e. ".php" files). It does not apply to static files.
472+
// If playing with this feature, make sure you also update your web server
473+
// configuration to add the right headers for static files. See CDN
474+
// configuration documentation above (search for "add_header") for more
475+
// information.
476+
// Recommended (strict) value for this setting, if enabled: "SAMEORIGIN".
467477
//$_configuration['security_x_frame_options'] = 'SAMEORIGIN';
468478
//
469479
// X-XSS-Protection sets the configuration for the cross-site scripting

0 commit comments

Comments
 (0)