diff options
author | Gaurav Sharma <gaurav2728@gmail.com> | 2015-11-03 07:31:00 +0530 |
---|---|---|
committer | Gaurav Sharma <gaurav2728@gmail.com> | 2015-11-03 07:31:00 +0530 |
commit | 0be57c78683dbe480434fbc2d0ed4f850791f124 (patch) | |
tree | 88a63f8f1fb96c1d0e08206c6c7ef4bcbea3376e /railties/lib | |
parent | d5890bdf660f670271a8f60bd091bd11db4c23b3 (diff) | |
download | rails-0be57c78683dbe480434fbc2d0ed4f850791f124.tar.gz rails-0be57c78683dbe480434fbc2d0ed4f850791f124.tar.bz2 rails-0be57c78683dbe480434fbc2d0ed4f850791f124.zip |
added missing instructions for `rack-cors`
`config.middleware.insert_before` changes require to restart the server
Also added missing `.` at the EOL.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/initializers/cors.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/cors.rb b/railties/lib/rails/generators/rails/app/templates/config/initializers/cors.rb index 9fca213a04..3b1c1b5ed1 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/cors.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/cors.rb @@ -1,5 +1,7 @@ -# Avoid CORS issues when API is called from the frontend app -# Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin AJAX requests +# Be sure to restart your server when you modify this file. + +# Avoid CORS issues when API is called from the frontend app. +# Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin AJAX requests. # Read more: https://github.com/cyu/rack-cors |