Update components/middleware.py
Browse files- components/middleware.py +1 -1
components/middleware.py
CHANGED
|
@@ -267,7 +267,7 @@ class x401Kit(BaseHTTPMiddleware):
|
|
| 267 |
if country["data"]["code"] in self.geo_code_locs:
|
| 268 |
|
| 269 |
return JSONResponse(
|
| 270 |
-
content={"status": "
|
| 271 |
headers= {
|
| 272 |
"Access-Control-Allow-Origin": "*",
|
| 273 |
"Access-Control-Allow-Credentials": "true"
|
|
|
|
| 267 |
if country["data"]["code"] in self.geo_code_locs:
|
| 268 |
|
| 269 |
return JSONResponse(
|
| 270 |
+
content={"status": "locdeny", "message":f"access denied for {country['data']['country']}"},
|
| 271 |
headers= {
|
| 272 |
"Access-Control-Allow-Origin": "*",
|
| 273 |
"Access-Control-Allow-Credentials": "true"
|