spec/dummy/config/application.rb in t2_airtime-0.5.0 vs spec/dummy/config/application.rb in t2_airtime-0.5.1
- old
+ new
@@ -26,17 +26,7 @@
# Only loads a smaller set of middleware suitable for API only apps.
# Middleware like session, flash, cookies can be added back manually.
# Skip views, helpers and assets when generating a new resource.
config.api_only = true
- # Rack::Cors provides support for Cross-Origin Resource Sharing (CORS)
- # for Rack compatible web applications.
- config.middleware.insert_before 0, Rack::Cors do
- allow do
- origins '*'
- resource '*',
- headers: :any,
- methods: %i[get post options]
- end
- end
end
end