ruby - sinatra cross site gem:

访问量: 77

refer to:
https://github.com/britg/sinatra-cross_origin

Gemfile:

gem "sinatra-cross_origin", "~> 0.3.1"

app.rb 中增加下面几行即可:

require 'sinatra'
require 'sinatra/cross_origin'

configure do
  enable :cross_origin
end

订阅/RSS Feed

Subscribe