diff --git a/pwnagotchi/ui/web.py b/pwnagotchi/ui/web.py
index ad727f7..7a08b8c 100644
--- a/pwnagotchi/ui/web.py
+++ b/pwnagotchi/ui/web.py
@@ -136,7 +136,7 @@ class Handler(BaseHTTPRequestHandler):
     # check the Origin header vs CORS
     def _is_allowed(self):
         origin = self.headers.get('origin')
-        if origin == "":
+        if not origin:
             logging.warning("request with no Origin header from %s" % self.address_string())
             return False