forked from LBRYCommunity/lbry-sdk
fix Access-Control-Allow-Origin problem
This commit is contained in:
parent
46153a8991
commit
47fae977dd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue