remotes/1693045480750635534/spooky-22
Aevann1 2021-08-01 10:39:05 +02:00
parent 08e25791b4
commit 3d2ae5a781
1 changed files with 12 additions and 11 deletions

View File

@ -118,20 +118,21 @@ Compress(app)
class CorsMatch(str):
def __eq__(self, other):
if isinstance(other, str):
if other in ['https://rdrama.net', f'https://{app.config["SERVER_NAME"]}']:
return True
return True
# if isinstance(other, str):
# if other in ['https://rdrama.net', f'https://{app.config["SERVER_NAME"]}']:
# return True
elif other.endswith(".rdrama.net"):
return True
# elif other.endswith(".rdrama.net"):
# return True
elif isinstance(other, list):
if f'https://{app.config["SERVER_NAME"]}' in other:
return True
elif any([x.endswith(".rdrama.net") for x in other]):
return True
# elif isinstance(other, list):
# if f'https://{app.config["SERVER_NAME"]}' in other:
# return True
# elif any([x.endswith(".rdrama.net") for x in other]):
# return True
return False
# return False