lib/sinatra-rocketio/application.rb in sinatra-rocketio-0.2.5 vs lib/sinatra-rocketio/application.rb in sinatra-rocketio-0.2.6

- old
+ new

@@ -5,9 +5,10 @@ app.register Sinatra::CometIO app.register Sinatra::WebSocketIO app.helpers Sinatra::RocketIO::Helpers app.get '/rocketio/settings' do content_type 'application/json' + response["Access-Control-Allow-Origin"] = "*" @setting_json ||= ( setting = {} setting[:websocket] = websocketio_url if Sinatra::RocketIO.options[:websocket] setting[:comet] = cometio_url if Sinatra::RocketIO.options[:comet] setting.to_json