mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-23 17:27:25 +00:00
5 lines
200 B
Python
5 lines
200 B
Python
def is_request_allowed(request, conf) -> bool:
|
|
origin = request.headers.get('Origin', 'null')
|
|
if origin == 'null' or conf.allowed_origin in ('*', origin):
|
|
return True
|
|
return False
|