forked from rDrama/rDrama
fdfd
parent
3d2ae5a781
commit
c11b231c71
|
@ -118,21 +118,20 @@ Compress(app)
|
||||||
class CorsMatch(str):
|
class CorsMatch(str):
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return True
|
if isinstance(other, str):
|
||||||
# if isinstance(other, str):
|
if other in ['https://rdrama.net', f'https://{app.config["SERVER_NAME"]}']:
|
||||||
# if other in ['https://rdrama.net', f'https://{app.config["SERVER_NAME"]}']:
|
return True
|
||||||
# return True
|
|
||||||
|
|
||||||
# elif other.endswith(".rdrama.net"):
|
elif other.endswith(".rdrama.net"):
|
||||||
# return True
|
return True
|
||||||
|
|
||||||
# elif isinstance(other, list):
|
elif isinstance(other, list):
|
||||||
# if f'https://{app.config["SERVER_NAME"]}' in other:
|
if f'https://{app.config["SERVER_NAME"]}' in other:
|
||||||
# return True
|
return True
|
||||||
# elif any([x.endswith(".rdrama.net") for x in other]):
|
elif any([x.endswith(".rdrama.net") for x in other]):
|
||||||
# return True
|
return True
|
||||||
|
|
||||||
# return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue