[BUG] Logging in doesn't work in dev environment.
**Describe the bug**
Logging in doesn't work in dev environment.

**To Reproduce**
1. <code>docker-compose up --build</code>
2. Log in.
3. request to /login is ok but /whoami fails CORS.

**Expected behavior**
Should be able to log in and access pages.

 - OS: Windows 10
 - Browser: Chrome
 - Version: 104.0.5112.101
diff --git a/backend/routes/auth.py b/backend/routes/auth.py
index b153d28..6659ac6 100644
--- a/backend/routes/auth.py
+++ b/backend/routes/auth.py
@@ -136,10 +136,10 @@ def logout():
 
 
 @bp.route("/whoami", methods=["GET"])
+@cross_origin()
 @jwt_required()
 @min_role_required(UserRole.PUBLIC)
 @validate()
-@cross_origin()
 def test_auth():
     """Returns the currently-authenticated user."""
     current_identity = get_jwt_identity()
['backend/routes/auth.py']