arina-ielchiieva commented on a change in pull request #1864: DRILL-7351: Added 
tokens to Web forms to prevent CSRF attacks
URL: https://github.com/apache/drill/pull/1864#discussion_r329997181
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/WebServerConstants.java
 ##########
 @@ -42,4 +42,7 @@ private WebServerConstants() {}
   // Logout page
   public static final String LOGOUT_RESOURCE_NAME = "logout";
   public static final String LOGOUT_RESOURCE_PATH = WEBSERVER_ROOT_PATH + 
LOGOUT_RESOURCE_NAME;
+
+  // Name of the CSRF protection token attribute
+  public static final String CSRF_TOKEN = "csrfToken";
 }
 
 Review comment:
   New line after line 48.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to