fix api being blocked for /? pages

This commit is contained in:
Jack 2016-09-16 04:12:13 -04:00
parent 05b47a9180
commit 7ad916f116

View file

@ -408,7 +408,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
log.warning("Attempted api call from %s", origin) log.warning("Attempted api call from %s", origin)
return server.failure return server.failure
if referer not in [None, 'http://localhost:5279/']: if referer is not None and not referer.startswith('http://localhost:5279/'):
log.warning("Attempted api call from %s", referer) log.warning("Attempted api call from %s", referer)
return server.failure return server.failure