Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Pawel Wolanski
Pawel Wolanski

Posted on

     

SAP Commerce Cloud and Broken Smart Edit

Issue

Recently I have been involved in website go-live. Testers have been complaining that they were not able to see website in Smartedit built-in iFrame.

Image description

Looking at the console we realised that recently jsapps endpoints started to send one HTTP Header:

X-Frame-Options: deny
Enter fullscreen modeExit fullscreen mode

That is probably a consequence of SAP internal security auditOWASP Secure HeadersX-Frame-Options.

At SAP Help you can find an articleAdding HTTP CSP Frame-Ancestors. You willNOT find explanation how to do that.

Solution

Fortunately there is possibility to add in-the-runtime HTTP Response Headers in Cloud Portal in sub-pageSecurity ->HTTP Response Header Sets.

SAP Help has one section about it here:HTTP Response Header Sets.

UnfortunatelyX-Frame-Options: deny is a default value and it is not possible to remove from system... but fortunately you can unset it in Cloud Portal.

My configuration for Smartedit contains two entries:

  • settingContent-Security-Policy with wildcard to allow any request from Commerce Cloud.
  • unsettingX-Frame-Options to make it finally working, as it is replaced by CSP (more info onMDN XFO

Image description

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
vvillalobos2022 profile image
vvillalobos2022
  • Joined

Thank this really help, this error came from nowhere one day to another without changing code neither configuration and we were starting to wonder if had to do with SAP.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Education
    Silesian University of Technology
  • Work
    used to be Senior Developer but now mainly working as a Consultant
  • Joined

More fromPawel Wolanski

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp