mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Fix headers.get('origin') == None check
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user