config.ru in shutterbug-0.2.1 vs config.ru in shutterbug-0.2.5
- old
+ new
@@ -2,10 +2,10 @@
require 'shutterbug'
require 'rack/cors'
use Rack::Cors do
allow do
origins '*'
- resource '/shutterbug/*', :headers => :any, :methods => :any
+ resource '*', :headers => :any, :methods => [:get, :post, :options]
end
end
use Shutterbug::Rackapp do |config|
config.uri_prefix = "http://localhost:9292"