Rails, No 'Access-Control-Allow-Origin' header is present on the requested resource
问题 I have apps on Angular, which uses the server Ruby on Rails/oAuth backend. When registering a user in the console, I get these errors. POST*.herokuapp.com/api/users 500 (Internal Server Error) *.herokuapp.com/api/users:1 Failed to load *.herokuapp.com/api/users: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '*.herokuapp.com' is therefore not allowed access. The response had HTTP status code 500. /registration:1 { "isTrusted": true /auth.ts:95 } And other