Skip to content

Commit

Permalink
Allow localhost by default for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Oct 9, 2019
1 parent 4fd6154 commit 0225c86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion authlib/common/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ def is_secure_transport(uri):
"""Check if the uri is over ssl."""
if os.getenv('AUTHLIB_INSECURE_TRANSPORT'):
return True
return uri.lower().startswith('https://')

uri = uri.lower()
return uri.startswith(('https://', 'http://localhost:'))

0 comments on commit 0225c86

Please sign in to comment.