Imagine you have a spring boot application and you only want to create one page which can be embedded as iFrame. All other pages should still have the default x-frame-options: deny header.
- I couldn't find a corresponding annotation (I expected something like the
@CrossOriginannotation, but generic for headers) - I tried to change the headers through the
httpServletResponsebut it seems that the security headers get overwritten afterwards - I tried to use
http.antmatcher("/controller").frameOptions().disable()but this breaks the rest of my authentication - and I miss a.allow(domain)method
I know that I could create some filter code but I hope that there is a simpler solution.
Any ideas?