If your using Turbo, you might see this behavior when trying to follow the redirect from Omniauth:
Where the browser POST's to the Rails server, gets the 302 redirect to Okta but then fails on CORs verification. This happens when you are using Turbo in your rails app and to fix it you should make a login button like this:
If your using Turbo, you might see this behavior when trying to follow the redirect from Omniauth:![image](https://user-images.githubusercontent.com/97050098/214704903-825f9b6a-13e4-4a4c-a9e9-abcc2fcc8552.png)
Where the browser POST's to the Rails server, gets the 302 redirect to Okta but then fails on CORs verification. This happens when you are using Turbo in your rails app and to fix it you should make a login button like this:
I figured this out by following what this comment said: https://github.com/hotwired/turbo/issues/45#issuecomment-753444256
This might be worth putting in the readme as a weird gotcha?