mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Prevent double injection of cross-origin headers from rest api
This commit is contained in:
parent
4a1a2e48bf
commit
b898f85457
1 changed files with 0 additions and 3 deletions
|
|
@ -268,9 +268,6 @@ public class ZeppelinServer extends Application {
|
|||
SecurityUtils.initSecurityManager(shiroIniPath);
|
||||
webapp.addFilter(ShiroFilter.class, "/api/*", EnumSet.allOf(DispatcherType.class));
|
||||
webapp.addEventListener(new EnvironmentLoaderListener());
|
||||
} else {
|
||||
webapp.addFilter(new FilterHolder(CorsFilter.class),
|
||||
"/api/*", EnumSet.allOf(DispatcherType.class));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue