|
37 | 37 | // The limit for all uploaded files, including images and attachments in MB. |
38 | 38 | 'upload_limit' => env('FILE_UPLOAD_SIZE_LIMIT', 50), |
39 | 39 |
|
40 | | - // Allow <script> tags to entered within page content. |
41 | | - // <script> tags are escaped by default. |
42 | | - // Even when overridden the WYSIWYG editor may still escape script content. |
43 | | - 'allow_content_scripts' => env('ALLOW_CONTENT_SCRIPTS', false), |
| 40 | + // Control the behaviour of content filtering, primarily used for page content. |
| 41 | + // This setting is a string of characters which represent different available filters: |
| 42 | + // - j - Filter out JavaScript and unknown binary data based content |
| 43 | + // - h - Filter out unexpected, and potentially dangerous, HTML elements |
| 44 | + // - f - Filter out unexpected form elements |
| 45 | + // - a - Run content through a more complex allowlist filter |
| 46 | + // This defaults to using all filters, unless ALLOW_CONTENT_SCRIPTS is set to true in which case no filters are used. |
| 47 | + // Note: These filters are a best-attempt and may not be 100% effective. They are typically a layer used in addition to other security measures. |
| 48 | + 'content_filtering' => env('APP_CONTENT_FILTERING', env('ALLOW_CONTENT_SCRIPTS', false) === true ? '' : 'jhfa'), |
44 | 49 |
|
45 | 50 | // Allow server-side fetches to be performed to potentially unknown |
46 | 51 | // and user-provided locations. Primarily used in exports when loading |
47 | 52 | // in externally referenced assets. |
48 | 53 | 'allow_untrusted_server_fetching' => env('ALLOW_UNTRUSTED_SERVER_FETCHING', false), |
49 | 54 |
|
50 | 55 | // Override the default behaviour for allowing crawlers to crawl the instance. |
51 | | - // May be ignored if view has be overridden or modified. |
52 | | - // Defaults to null since, if not set, 'app-public' status used instead. |
| 56 | + // May be ignored if the underlying view has been overridden or modified. |
| 57 | + // Defaults to null in which case the 'app-public' status is used instead. |
53 | 58 | 'allow_robots' => env('ALLOW_ROBOTS', null), |
54 | 59 |
|
55 | 60 | // Application Base URL, Used by laravel in development commands |
|
0 commit comments