(20250221) Trying to resolve CORS problem in the MikroTik in Kenya.

This commit is contained in:
2025-02-21 17:23:55 +05:30
parent 3f23e186ba
commit f07f0979d8
2 changed files with 10 additions and 3 deletions
+6 -2
View File
@@ -21,7 +21,8 @@
N/A
"""
import datetime
# *****************************************************************************************************************
# ***** ****
# *** IMPORT ***
@@ -53,6 +54,9 @@ from typing import List, Literal
# To make API calls:
import httpx
# To work with date and time:
import datetime
# To work with MongoDB:
from bson import ObjectId
from pymongo import UpdateOne
@@ -659,7 +663,7 @@ class CoreAuthTokenController(CoreBaseModel):
# If there is some filtering possible, we fetch the token:
token = await mongo_data_conn.find_one(
collection = self.AUTH_COLLECTION,
filter = mongo_data_conn.dict_to_dot_notation(filter_json)
filter = filter_json
)
# Done here: