Sha256: 08422144f5c63e747d6fece718b2d3e2bd00963a1773a2f4280b8f4b144c1115
Contents?: true
Size: 408 Bytes
Versions: 4
Compression:
Stored size: 408 Bytes
Contents
gather_gem('rack-cors', '~> 0.4.0') after(:gem_install) do application %{ # Enables CORS for all requests config.middleware.insert_before 0, "Rack::Cors" do allow do origins '*' resource '*', :headers => :any, :expose => ['X-Page', 'X-PageTotal'], :methods => [:get, :post, :delete, :put, :options] end end } end
Version data entries
4 entries across 4 versions & 1 rubygems