mirror of https://github.com/rails/rails
fix: outdated cors initializer docs
This commit is contained in:
parent
0f9aaa5ca9
commit
ca73646b4a
|
@ -1361,7 +1361,7 @@ Next, add an initializer to configure the middleware:
|
|||
|
||||
```ruby
|
||||
# config/initializers/cors.rb
|
||||
Rails.application.config.middleware.insert_before 0, "Rack::Cors" do
|
||||
Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
||||
allow do
|
||||
origins 'example.com'
|
||||
|
||||
|
|
Loading…
Reference in New Issue