CodeWiki icon indicating copy to clipboard operation
CodeWiki copied to clipboard

why only support https

Open 1119302165 opened this issue 1 year ago • 3 comments

✗ Configuration error: URL must use HTTPS: http://xxxxxx HTTP is only allowed for localhost

1119302165 avatar Nov 17 '25 03:11 1119302165

Could you provide more detailed logs?

anhnh2002 avatar Nov 17 '25 10:11 anhnh2002

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"
                )

1119302165 avatar Nov 17 '25 11:11 1119302165

Thanks for the provision. I quickly fixed it here: 6d02236208de7a780ec9bacf872e98ed057a9a5b

anhnh2002 avatar Nov 17 '25 12:11 anhnh2002