fix Access-Control-Allow-Origin problem

This commit is contained in:
Jack 2016-08-25 23:39:05 -04:00
parent 0111919975
commit 2a2658d440

View file

@ -426,7 +426,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
except jsonrpclib.Fault, f:
self._cbRender(f, request, id, version)
else:
request.setHeader("Access-Control-Allow-Origin", "*")
request.setHeader("Access-Control-Allow-Origin", "localhost")
request.setHeader("content-type", "text/json")
if args == [{}]:
d = defer.maybeDeferred(function)