DEV Community

Discussion on: Hotwire Fix for CORS Error when using Omniauth

Collapse
developius profile image
Finnian Anderson • Edited on

Thanks! This one was driving me nutty after upgrading omniauth-google-oauth2 to v1.
If you still get an error like this:

Could not authenticate you from GoogleOauth2 because "Authenticity error".
Enter fullscreen mode Exit fullscreen mode

then you may need to add omniauth-rails_csrf_protection to your Gemfile.