class Rack::PermissiveCors

Constants

VERSION

Public Class Methods

new(*) click to toggle source
Calls superclass method
# File lib/rack/permissive_cors.rb, line 7
def initialize(*)
  super
  allow_all
end

Private Instance Methods

allow_all() click to toggle source
# File lib/rack/permissive_cors.rb, line 14
def allow_all
  allow do
    origins '*'
    resource '*', headers: :any, methods: :any
  end
end