Skip to content

Commit 2bcef30

Browse files
authored
fix csp docu
Updated the Content Security Policy in the documentation to include additional sources.
1 parent 13a0d81 commit 2bcef30

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/configuration/security.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ By default, abap2UI5 uses the following CSP:
3838
You have the option to adjust the CSP if needed. This can be done by modifying the HTTP handler call as shown below:
3939

4040
```abap
41-
DATA(lo_server) = z2ui5_cl_http_handler=>run( VALUE #(
42-
content_security_policy = ` <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' data: ` && |\n| &&
43-
` ui5.sap.com *.ui5.sap.com sapui5.hana.ondemand.com *.sapui5.hana.ondemand.com ` && |\n| &&
44-
` sdk.openui5.org *.sdk.openui5.org "/>`
45-
) ).
46-
```
41+
METHOD z2ui5_if_exit~set_config_http_get.
42+
43+
cs_config-content_security_policy = `<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' ui5.sap.com *.ui5.sap.com sdk.openui5.org *.sdk.openui5.org cdn.jsdelivr.net *.cdn.jsdelivr.net"/>`.
44+
45+
ENDMETHOD.
46+
```

0 commit comments

Comments
 (0)