diff --git a/app/__init__.py b/app/__init__.py
index 5519a7b5fcb35b2a9c1b89af6ea7dc82cb1c6bf1..6b4273e6bc4ae145e620bc1a8b359f4381495f8e 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -71,11 +71,12 @@ def create_app(config_name):
             "redir", app_vars.default_referrer
         )
 
-        if not any(item in session["user"].get("eppa") for item in valid_eppa):
-            return render_template(
-                "account/unauthorized.html",
-                unauthorized_msg=messages.unauthorized_message,
-            )
+        if 'eppa' in request.headers:
+            if not any(item in session["user"].get("eppa") for item in valid_eppa):
+                return render_template(
+                    "account/unauthorized.html",
+                    unauthorized_msg=messages.unauthorized_message,
+                )
 
         if rc_util.check_state(session["user"].get("username")) == "hold":
             return render_template(