Error: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Backund Ruby on Rails, Frond-end Angular 5.
application.rb
...
module Dkeeper
class Application < Rails::Application
config.middleware.use Rack::Cors do
allow do
origins '*'
resource '*', headers: :any, methods: [:get, :post, :put, :patch, :delete, :options, :head]
end
end
...