CodeWiki
CodeWiki copied to clipboard
why only support https
✗ Configuration error: URL must use HTTPS: http://xxxxxx HTTP is only allowed for localhost
Could you provide more detailed logs?
Could you provide more detailed logs? I modified the code here to skip the check.
# Check HTTPS requirement
if require_https and parsed.scheme != 'https':
# Allow HTTP for localhost
if allow_localhost and parsed.hostname in ['localhost', '127.0.0.1', '::1']:
pass
else:
raise ConfigurationError(
f"URL must use HTTPS: {url}\n"
f"HTTP is only allowed for localhost"
)
Thanks for the provision. I quickly fixed it here: 6d02236208de7a780ec9bacf872e98ed057a9a5b