Skip to content

Instantly share code, notes, and snippets.

@joshwlewis
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save joshwlewis/9336402 to your computer and use it in GitHub Desktop.

Select an option

Save joshwlewis/9336402 to your computer and use it in GitHub Desktop.

Revisions

  1. joshwlewis revised this gist Mar 3, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion application.rb
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    config.middleware.insert 0, Rack::Cors do
    allow do
    origins(/^https:\/\/my.domain.com$/)
    origins(/^https:\/\/app.client.com$/)
    resource '*',
    headers: :any,
    methods: [:get, :put, :post, :delete]
  2. joshwlewis created this gist Mar 3, 2014.
    9 changes: 9 additions & 0 deletions application.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    config.middleware.insert 0, Rack::Cors do
    allow do
    origins(/^https:\/\/my.domain.com$/)
    resource '*',
    headers: :any,
    methods: [:get, :put, :post, :delete]
    end
    end