Skip to content

Commit

Permalink
Fix typo in README.md (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabo-cs committed Oct 24, 2023
1 parent 8f50607 commit e823594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Rails.application.config.middleware.insert_before 0, Rack::Cors do
end
```

NOTE: If you create application with `--api` option, configuration automatically generate in `config/initializers/cors.rb`.
NOTE: If you create application with `--api` option, configuration is automatically generated in `config/initializers/cors.rb`.

We use `insert_before` to make sure `Rack::Cors` runs at the beginning of the stack to make sure it isn't interfered with by other middleware (see `Rack::Cache` note in **Common Gotchas** section). Basic setup examples for Rails 5 & Rails 6 can be found in the examples/ directory.

Expand Down

0 comments on commit e823594

Please sign in to comment.