diff --git a/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlow.java b/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlow.java
index 343c12348..9f02de59a 100644
--- a/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlow.java
+++ b/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlow.java
@@ -65,8 +65,8 @@ class AuthFlow implements AutoCloseable {
* @param authEndpoint Address of the Authorization Endpoint
* @param tokenEndpoint Address of the Token Endpoint
* @param clientId The client_id
- * @return An authorization
- * @throws Exception
+ * @return An authorization flow
+ * @throws Exception In case of any problems starting the server
*/
public static AuthFlow init(URI authEndpoint, URI tokenEndpoint, String clientId) throws Exception {
var receiver = AuthFlowReceiver.start();
diff --git a/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlowReceiver.java b/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlowReceiver.java
index 1ba895ae4..6b8383884 100644
--- a/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlowReceiver.java
+++ b/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlowReceiver.java
@@ -17,7 +17,7 @@ import java.util.concurrent.LinkedBlockingQueue;
* A basic implementation for RFC 8252, Section 7.3:
*
* We're spawning a local http server on a system-assigned high port and
- * use http://127.0.0.1:{PORT}/success as a redirect URI.
+ * use http://127.0.0.1:{PORT}/callback as a redirect URI.
*
* Furthermore, we can deliver a html response to inform the user that the * auth workflow finished and she can close the browser tab. @@ -51,10 +51,6 @@ class AuthFlowReceiver implements AutoCloseable { var server = new Server(); var context = new ServletContextHandler(); -// var corsFilter = new FilterHolder(new CrossOriginFilter()); -// corsFilter.setInitParameter(CrossOriginFilter.ALLOWED_ORIGINS_PARAM, "*"); // TODO restrict to hub host -// context.addFilter(corsFilter, "/*", EnumSet.of(DispatcherType.REQUEST)); - var servlet = new CallbackServlet(); context.addServlet(new ServletHolder(servlet), CALLBACK_PATH);