Skip to content

Commit

Permalink
Set CORS header to allow status page to read these values.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Muscat committed Apr 15, 2015
1 parent 4c314a9 commit 3fc16cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/eddn/Gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def health_check():

@get('/stats/')
def stats():
response.set_header("Access-Control-Allow-Origin", "*")
return simplejson.dumps(statsCollector.getSummary())


Expand Down
3 changes: 2 additions & 1 deletion src/eddn/Relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import gevent
import simplejson
import zmq.green as zmq
from bottle import get, run as bottle_run
from bottle import get, response, run as bottle_run
from eddn.conf.Settings import Settings, loadConfig

from gevent import monkey
Expand All @@ -26,6 +26,7 @@

@get('/stats/')
def stats():
response.set_header("Access-Control-Allow-Origin", "*")
return simplejson.dumps(statsCollector.getSummary())


Expand Down

0 comments on commit 3fc16cb

Please sign in to comment.