Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails cors allow all

config.middleware.insert_before 0, Rack::Cors do
      allow do
        origins '*'
        resource '*', :headers => :any, :methods => [:get, :post, :options]
      end
    end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #cors
ADD COMMENT
Topic
Name
5+5 =