From 2a2658d44033d5412990494029818fc821ebf2f1 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 25 Aug 2016 23:39:05 -0400 Subject: [PATCH] fix Access-Control-Allow-Origin problem --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index 753aeb157..0f4f9b568 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -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)