From e823594f039ab5088908197940c58465d21ef62c Mon Sep 17 00:00:00 2001 From: Gabo Date: Tue, 24 Oct 2023 10:21:30 -0500 Subject: [PATCH] Fix typo in README.md (#267) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b1b93b8..238171a 100644 --- a/README.md +++ b/README.md @@ -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.