Skip to content

Commit 3795de7

Browse files
committed
Fixing cross origin bug for rest calls that allow a malicious user to issue requests from a site other than the zeppelin server.
Adding unit tests and a dependency to mockito to the server project (please comment if that is ok or if there is another preferred mocking framework). Also upgrading the servelet version from 2.5 to 3.0 as this also fixes a security vulnerability with respect to httonly cookies.
1 parent bcb1ac1 commit 3795de7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

zeppelin-server/src/test/java/org/apache/zeppelin/server/CorsFilterTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public void InvalidCorsFilterTest() throws IOException, ServletException {
7979
when(mockRequest.getMethod()).thenReturn("Empty");
8080
when(mockRequest.getServerName()).thenReturn("evillocalhost");
8181

82-
8382
doAnswer(new Answer() {
8483
@Override
8584
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {

0 commit comments

Comments
 (0)