KEYCLOAK-2819 Fix realm security header setup after migration

This commit is contained in:
mposolda 2016-04-14 10:22:03 +02:00
parent 9e3fa4b566
commit 32d7464e52

View file

@ -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));
}