7d4da81272
* install rubocop * 1961 automatic rubocop fixes * update rubocop.yml to ignore half of the remaining cops * rubocop lint warnings * random other warnings fixed
8 lines
223 B
Ruby
8 lines
223 B
Ruby
Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
|
allow do
|
|
origins '*'
|
|
resource '/api/*',
|
|
headers: :any,
|
|
methods: [:get, :post, :put, :delete, :options, :head]
|
|
end
|
|
end
|