I am getting this error while I am trying to hit on my api deployed on Heroku in rails application using Ruby on rails :
Failed to load https://**: my API link deployed on Heroku No
'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:3000' is therefore not allowed access.