fix: outdated cors initializer docs

This commit is contained in:
lsglucas 2024-02-10 13:30:00 -03:00
parent 0f9aaa5ca9
commit ca73646b4a
1 changed files with 1 additions and 1 deletions

View File

@ -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'