KEYCLOAK-2819 Fix realm security header setup after migration
This commit is contained in:
parent
9e3fa4b566
commit
32d7464e52
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ public class MigrateTo1_9_2 {
|
|||
if (realm.getBrowserSecurityHeaders() != null) {
|
||||
|
||||
Map<String, String> browserSecurityHeaders = new HashMap<>(realm.getBrowserSecurityHeaders());
|
||||
browserSecurityHeaders.put("xFrameOptions", "nosniff");
|
||||
browserSecurityHeaders.put("xContentTypeOptions", "nosniff");
|
||||
|
||||
realm.setBrowserSecurityHeaders(Collections.unmodifiableMap(browserSecurityHeaders));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue