Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with ActionController::InvalidAuthenticityToken error #114

Open
joaomarceloods opened this issue Oct 28, 2024 · 0 comments
Open

Help with ActionController::InvalidAuthenticityToken error #114

joaomarceloods opened this issue Oct 28, 2024 · 0 comments

Comments

@joaomarceloods
Copy link

joaomarceloods commented Oct 28, 2024

Context: Apple sign-in worked fine until a week ago when the company moved the app to Kamal. We started getting this error:

ActionController::InvalidAuthenticityToken (HTTP Origin header (https://appleid.apple.com/) didn’t match request.base_url (https://www.myapp.com/))

I found some suggestions to forward the X-Forwarded-Proto header so I configured it in Kamal but it didn't fix the issue.

I also found a suggestion to set the Origin header to your own domain, but I don't think that's configurable with Kamal.

Any other ideas or help fixing this issue is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant