Does not seem to allow any URL's after installation #18

Closed
gotoAndBliss opened this Issue Jan 25, 2013 · 1 comment

Projects

None yet

2 participants

@gotoAndBliss

I had this ->

    # use this middleware gem to cause the API to be CORS capable.
    config.middleware.insert_before(Rack::ConditionalGet, Rack::Cors)  do

      allow do
        origins '*'
        resource '*',
                 :headers => :any,
                 :methods => [:get, :post, :options]
      end
    end

Then I tried this..

    config.middleware.use Rack::Cors do
      allow do
        origins '*'
        resource '*', :headers => :any, :methods => [:get, :post, :options]
      end
    end

POSTMAN plugin for Chrome seems to properly work, but nothing with the actual web browser itself.

@cyu
Owner
cyu commented Sep 7, 2014

Closing old issue, please feel free to reopen if the error is still occurring.

@cyu cyu closed this Sep 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment