Skip to content

Commit

Permalink
Add configuration note
Browse files Browse the repository at this point in the history
  • Loading branch information
akaryu0206 authored and cyu committed Sep 11, 2022
1 parent fbd2d48 commit 36e2378
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ gem 'rack-cors'
### Rails Configuration
For Rails, you'll need to add this middleware on application startup. A practical way to do this is with an initializer file. For example, the following will allow GET, POST, PATCH, or PUT requests from any origin on any resource:

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

```ruby
# config/initializers/cors.rb

Expand Down

0 comments on commit 36e2378

Please sign in to comment.