mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Set /api path on servlet level, not context to fix test
This commit is contained in:
parent
54f6b071fb
commit
70194fc378
1 changed files with 2 additions and 2 deletions
|
|
@ -218,8 +218,8 @@ public class ZeppelinServer extends Application {
|
|||
|
||||
final ServletContextHandler cxfContext = new ServletContextHandler();
|
||||
cxfContext.setSessionHandler(new SessionHandler());
|
||||
cxfContext.setContextPath(conf.getServerContextPath() + "/api");
|
||||
cxfContext.addServlet(cxfServletHolder, "/*");
|
||||
cxfContext.setContextPath(conf.getServerContextPath());
|
||||
cxfContext.addServlet(cxfServletHolder, "/api/*");
|
||||
|
||||
cxfContext.addFilter(new FilterHolder(CorsFilter.class), "/*",
|
||||
EnumSet.allOf(DispatcherType.class));
|
||||
|
|
|
|||
Loading…
Reference in a new issue