Spring boot application : local URL doesn’t load in an IFrame

Problem : Application URLs (local urls) not loading in iframe inside an application UI.

Reason : Spring sets the X-Frame-Options to Deny by default.

Fix : Allow Same-origin-URLs in frames.

In Security configuration, add –

.//other configs


Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.

Leave a Comment

Your email address will not be published. Required fields are marked *