You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[timezone](#timezone)|`Asia/Tokyo`, `Pacific/Apia`, `Asia/Kolkata`, `Europe/Sofia` and etc. | Your local time zone. | Allows to override your local time zone. | Date/time components (`ui5-date-picker`, etc.) |
22
22
|[themeRoot](#themeRoot)| String to a URL - see the [themeRoot](#themeRoot) section below | N/A | Allows to set a URL to a Theme-designer-created custom theme. | All components |
23
+
|[ignoreUrlParams](#ignoreUrlParams)|`true`, `false`|`false`| Whether to ignore URL parameters during configuration initialization | Framework |
23
24
24
25
### theme
25
26
<aname="theme"></a>
@@ -304,6 +305,24 @@ or, the preferred new format:
304
305
305
306
Failing to do so will result in a warning in the console and the theme root will not be set.
306
307
308
+
### ignoreUrlParams
309
+
<aname="ignoreUrlParams"></a>
310
+
311
+
This configuration option controls whether URL parameters (e.g. `sap-ui-theme`, `sap-ui-language`, `sap-ui-animationMode`) are processed during framework initialization.
312
+
313
+
By default, the framework reads `sap-*` and `sap-ui-*` URL parameters and uses them to override the configuration script settings. While useful during development and testing, this behavior can be a security concern in production environments since URL parameters are user-controlled input that can be manipulated through crafted links.
314
+
315
+
When set to `true`, all URL parameter processing is skipped and only the configuration script and module imports are used.
316
+
317
+
Example:
318
+
```html
319
+
<scriptdata-ui5-configtype="application/json">
320
+
{
321
+
"ignoreUrlParams":true
322
+
}
323
+
</script>
324
+
```
325
+
307
326
## Configuration Script
308
327
<aname="script"></a>
309
328
@@ -406,4 +425,10 @@ import { getTimezone } from "@ui5/webcomponents-base/dist/config/Timezone.js";
0 commit comments