fix Origin https scheme check
This commit is contained in:
parent
123e94111d
commit
aa23f6b24f
@ -108,7 +108,7 @@ def check_self_origin():
|
||||
# Origin should look like: <scheme>://<hostname> (optionally followed by :<port>)
|
||||
if len(origin_parts) < 3:
|
||||
quart.abort(400, 'Broken Origin header')
|
||||
if origin_parts[0] != 'https' and not app.my_config.debug:
|
||||
if origin_parts[0] != 'https:' and not app.my_config.debug:
|
||||
# -> require https in production
|
||||
quart.abort(403, 'Non-https Origin not allowed')
|
||||
origin_host = origin_parts[2]
|
||||
|
Loading…
Reference in New Issue
Block a user