This is plain rails 4.1 application which demonstrates ActionController::InvalidCrossOriginRequest issue
This application contain only one controller(home) with index action. Index action respond to 'html' and 'js' request.
-
Take a clone
-
Go to root of application and do
bundle install
- Start the server
rails s
- Access html url
- Access js url
Last step will raise ActionController::InvalidCrossOriginRequest which is I think is not a proper exception.