File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,10 @@ def handleAuditLogRequest(self, request):
281281 client = HTTPClient (addr )
282282 answer = client .request (HTTPRequest (uri = uri , method = 'GET' , body = query ))
283283
284- headers = { 'Content-Type' : 'application/javascript' }
284+ headers = {
285+ 'Content-Type' : 'application/javascript' ,
286+ 'Access-Control-Allow-Origin' : '*'
287+ }
285288
286289 if answer .code == 200 :
287290 data = json .loads (answer .body )
Original file line number Diff line number Diff line change @@ -37,7 +37,10 @@ def handleTaskRequest(self, request):
3737 match = re .match ('/tasks/([0-9a-z]+)/executionsummary' , request .uri_path )
3838 task = match .group (1 )
3939
40- headers = { 'Content-Type' : 'application/javascript' }
40+ headers = {
41+ 'Content-Type' : 'application/javascript' ,
42+ 'Access-Control-Allow-Origin' : '*'
43+ }
4144
4245 try :
4346 (summary , stat ) = self .cluster .zk .get ('/moneta/executionsummary/%s' % (task ))
@@ -48,7 +51,10 @@ def handleTaskRequest(self, request):
4851
4952 def handleTasksRequest (self , request ):
5053 """Handle requests to /executionsummary"""
51- headers = { 'Content-Type' : 'application/javascript' }
54+ headers = {
55+ 'Content-Type' : 'application/javascript' ,
56+ 'Access-Control-Allow-Origin' : '*'
57+ }
5258
5359 tasks = {}
5460
You can’t perform that action at this time.
0 commit comments