Activate Clickjacking-Framing-Protection service
SAP NetWeaver comes with its own solution to prevent clickjacking for its most relevant UI frameworks. For more information about this protection, see the corresponding SAP Notes.
- WDA: 1872800.
- Clickjacking protection framework, see Note 2319727.
By default, clickjacking protection is disabled. To activate it, you need to insert a value into table HTTP_WHITELIST.
Insert values into table HTTP_WHITELIST
Transaction: SE16
Check if clickjacking protection service is enabled or disabled. It is disabled, if no record with ENTRY_TYPE=30 is in the table, or if the table is empty.
Table name: HTTP_WHITELIST
Execute
Result
By default, no values are in the table and the service is not enabled. For data that needs to be inserted into table HTTP_WHITELIST, see SAP Note 2142551. Creating an entry type with vale 30 activates the whitelist.
Transaction: SE16
Select F5 or click on the new entry icon.
Insert data. See links below for additional information on possible values.
Click save to persist the entry in the table.
Afterwards, the table will contain one record. As the record has value 30 for column ENTRY_TYPE, the clickjacking protection service is enabled.
Activate ICF whitelist service
Adding a record activates the service, but to make apps working, additional configuration steps must be taken. For instance, accessing now a WDA app (e.g. SAML2) will resolve in a HTTP 500 internal server error. This is caused by having the clickjacking protection activated, but not the whitelist service.
To solve the HTTP 500 error, you need to activate the ICF whitelist service.
Transaction SICF_INST Technical name: UICS_BASIC
Execute. This will activate the ICF node
/sap/public/bc/uics/whitelist
Result
After enabling the service and the ICF node, the above WDA app will open in the browser.
https://vhcalnplci:44300/sap/bc/webdynpro/sap/saml2
Additional information on setting whitelist entries.
- https://help.sap.com/viewer/52778f25e90347a1a15bc0113b70462b/2.07/en-US/ee984daaa3834eeaa77d5edb822570f6.html
- https://help.sap.com/erp2005_ehp_07/helpdata/en/96/6b6233e5404ebe80513ae082131132/frameset.htm
0 Comments