app/controllers/javascript_controller.rb in test_server-0.1.0 vs app/controllers/javascript_controller.rb in test_server-0.1.1

- old
+ new

@@ -1,14 +1,14 @@ # encoding: utf-8 module TestServer module App class JavascriptController < ApplicationController - use Rack::Cors do - allow do - origins '*' - resource '*', :headers => :any, :methods => [:get, :post] - end - end + #use Rack::Cors do + # allow do + # origins '*' + # resource '*', :headers => :any, :methods => [:get, :post] + # end + #end before do param :no_cache, Boolean, default: false param :must_revalidate, Boolean, default: false param :max_age, Integer