Skip to content

Commit

Permalink
escape asterisk in README.md (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
stim371 authored and cyu committed Aug 24, 2016
1 parent 376b049 commit 126f3a2
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 @@ -87,7 +87,7 @@ See The [Rails Guide to Rack](http://guides.rubyonrails.org/rails_on_rack.html)
* **logger** (Object or Proc): Specify the logger to log to. If a proc is provided, it will be called when a logger is needed. This is helpful in cases where the logger is initialized after `Rack::Cors` is initially configured, like `Rails.logger`.

#### Origin
Origins can be specified as a string, a regular expression**, or as '*' to allow all origins.
Origins can be specified as a string, a regular expression, or as '\*' to allow all origins.

**\*SECURITY NOTE:** Be careful when using regular expressions to not accidentally be too inclusive. For example, the expression `/https:\/\/example\.com/` will match the domain *example.com.randomdomainname.co.uk*. It is recommended that any regular expression be enclosed with start & end string anchors (`\A\z`).

Expand Down

0 comments on commit 126f3a2

Please sign in to comment.