Closed nicklevenson closed 3 years ago
Ha! I actually had this EXACT issue recently. CORS isn't the answer. https://github.com/simi/omniauth-facebook/issues/356#issuecomment-776349194
The solution I used was to make it a button and flag it as data-turbo: 'false'
basically disabling Turbo for that element's interactions. Then Facebook worked for me. There are other things in that thread that might help you on other things though as I see you are also going to V4. If you just made the application in Facebook you're likely on V9 as I am, so you'll need to update the config for that as well potentially.
I wanted to use Hotwire for a project and it was working great! However, it was somehow causing an issue with OAuth. I tried using rack-cors to get around this, but to no avail. The only thing that remedied the issue was uninstalling Hotwire. I am more of a newbie coder so forgive me if this isn't directly Hotwire's issue. Here was the error message: