diff --git a/src/eddn/Gateway.py b/src/eddn/Gateway.py index 95ee58a..97260fe 100644 --- a/src/eddn/Gateway.py +++ b/src/eddn/Gateway.py @@ -184,6 +184,7 @@ def health_check(): @get('/stats/') def stats(): + response.set_header("Access-Control-Allow-Origin", "*") return simplejson.dumps(statsCollector.getSummary()) diff --git a/src/eddn/Relay.py b/src/eddn/Relay.py index 6ef59b6..15d83d0 100644 --- a/src/eddn/Relay.py +++ b/src/eddn/Relay.py @@ -12,7 +12,7 @@ import zlib 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 @@ -26,6 +26,7 @@ statsCollector.start() @get('/stats/') def stats(): + response.set_header("Access-Control-Allow-Origin", "*") return simplejson.dumps(statsCollector.getSummary())