guilhermesad / rspotify

A ruby wrapper for the Spotify Web API
MIT License
713 stars 286 forks source link

csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError #250

Open sjoliver opened 2 years ago

sjoliver commented 2 years ago

I set OAuth up according to the docs but as soon as I click the sign in link in the browser, I get an error this error. I'm new to Rails so struggling to figure this one out, any help would be much appreciated - thanks!

lucaspetti commented 1 year ago

I was having a similar issue, adding this gem to the Gemfile solved it for now (remember to run bundle install) : gem 'omniauth-rails_csrf_protection'