remotes/1693045480750635534/spooky-22
Aevann1 2022-04-05 18:52:49 +02:00
parent e4c8bde7ba
commit ff71d8466d
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ mail = Mail(app)
@app.before_request
def before_request():
if request.host != app.config["SERVER_NAME"]: return {"error":"Unauthorized host provided."}, 401
# if request.host != app.config["SERVER_NAME"]: return {"error":"Unauthorized host provided."}, 401
if request.headers.get("CF-Worker"): return {"error":"Cloudflare workers are not allowed to access this website."}, 401
if request.method.lower() != "get" and app.config["READ_ONLY"]: