CORS Issue with Rails 4, omniauth-facebook, rack-cors, Heroku
问题 Summary: I have a CORS problem. I'm trying to authenticate with Facebook from a React app with a Rails API. My app runs on localhost:8080 and my api runs on Heroku. I'm able to login to facebook and create a session on callback, but the cookie set by facebook isn't picked up by omniauth. I use omniauth-facebook client-side authentication. I think that the problem is somewhere in my configuration of rack-cors. It works when I run my api on localhost:3000. Earlier, I received the error csrf