Changed X-Frame attribute value to sameorigin 71/111371/1
authorjegadeeshbabu3 <jegadeesh.babu@att.com>
Tue, 18 Aug 2020 12:34:38 +0000 (18:04 +0530)
committerjegadeeshbabu3 <jegadeesh.babu@att.com>
Tue, 18 Aug 2020 12:35:59 +0000 (18:05 +0530)
Tweaked response header

Issue-ID: PORTAL-980
Change-Id: I659be73675f36027f54b2a65d5b99013d74a43ca
Signed-off-by: jegadeeshbabu3 <jegadeesh.babu@att.com>
ecomp-portal-BE-common/src/main/java/org/onap/portalapp/config/ExternalSecurityConfig.java

index 9f125b7..ae08a34 100644 (file)
@@ -69,6 +69,11 @@ public class ExternalSecurityConfig extends WebSecurityConfigurerAdapter {
                                return false;
                        }
                };
+               
+               
+               //Added this code to enable Raptor charts within Iframe
+               http.headers().frameOptions().sameOrigin();
+               
                if(MusicUtil.isMusicEnable())
                        http.csrf().csrfTokenRepository(MusicCookieCsrfTokenRepository.withHttpOnlyFalse()).requireCsrfProtectionMatcher(csrfRequestMatcher);
                else