An example of a CORS configured rails 4 app that extends devise to pass a JWT during authentication.