commit
3275b528f9
2 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ public class DefaultMongoConnectionFactoryProvider implements MongoConnectionPro
|
||||||
private Class[] getManagedEntities() throws ClassNotFoundException {
|
private Class[] getManagedEntities() throws ClassNotFoundException {
|
||||||
Class[] entityClasses = new Class[entities.length];
|
Class[] entityClasses = new Class[entities.length];
|
||||||
for (int i = 0; i < entities.length; i++) {
|
for (int i = 0; i < entities.length; i++) {
|
||||||
entityClasses[i] = Thread.currentThread().getContextClassLoader().loadClass(entities[i]);
|
entityClasses[i] = getClass().getClassLoader().loadClass(entities[i]);
|
||||||
}
|
}
|
||||||
return entityClasses;
|
return entityClasses;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class MigrateTo1_9_2 {
|
||||||
if (realm.getBrowserSecurityHeaders() != null) {
|
if (realm.getBrowserSecurityHeaders() != null) {
|
||||||
|
|
||||||
Map<String, String> browserSecurityHeaders = new HashMap<>(realm.getBrowserSecurityHeaders());
|
Map<String, String> browserSecurityHeaders = new HashMap<>(realm.getBrowserSecurityHeaders());
|
||||||
browserSecurityHeaders.put("xFrameOptions", "nosniff");
|
browserSecurityHeaders.put("xContentTypeOptions", "nosniff");
|
||||||
|
|
||||||
realm.setBrowserSecurityHeaders(Collections.unmodifiableMap(browserSecurityHeaders));
|
realm.setBrowserSecurityHeaders(Collections.unmodifiableMap(browserSecurityHeaders));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue