File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
modules/saml/src/Controller Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ $config = [
5858 /*
5959 * The following settings are *filesystem paths* which define where
6060 * SimpleSAMLphp can find or write the following things:
61- * - 'cachedir': Where SimpleSAMLphp can write its cache.
61+ * - 'cachedir': Where SimpleSAMLphp can write its cache.
6262 * - 'loggingdir': Where to write logs. MUST be set to NULL when using a logging
6363 * handler other than `file`.
6464 * - 'datadir': Storage of general data.
@@ -275,7 +275,16 @@ $config = [
275275 * Whenever you change any of these headers, make sure to validate your config by running your
276276 * hostname through a security-test like https://en.internet.nl
277277 'headers.security' => [
278- 'Content-Security-Policy' => "default-src 'none'; frame-ancestors 'self'; object-src 'none'; script-src 'self'; style-src 'self'; font-src 'self'; connect-src 'self'; img-src 'self' data:; base-uri 'none'",
278+ 'Content-Security-Policy' =>
279+ "default-src 'none'; " .
280+ "frame-ancestors 'self'; " .
281+ "object-src 'none'; " .
282+ "script-src 'self'; " .
283+ "style-src 'self'; " .
284+ "font-src 'self'; " .
285+ "connect-src 'self'; " .
286+ "img-src 'self' data:; " .
287+ "base-uri 'none'",
279288 'Referrer-Policy' => 'origin-when-cross-origin',
280289 'X-Content-Type-Options' => 'nosniff',
281290 ],
Original file line number Diff line number Diff line change 2828use function in_array ;
2929use function is_null ;
3030use function sprintf ;
31- use function strpos ;
32- use function strrpos ;
3331use function time ;
3432use function var_export ;
3533
You can’t perform that action at this time.
0 commit comments