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

Rails InvalidAuthenticityToken on joining room #43

Open
SergueyNovoseltsev opened this issue Jan 17, 2018 · 2 comments
Open

Rails InvalidAuthenticityToken on joining room #43

SergueyNovoseltsev opened this issue Jan 17, 2018 · 2 comments

Comments

@SergueyNovoseltsev
Copy link

SergueyNovoseltsev commented Jan 17, 2018

Hi,

I have an issue with the InvalidAuthenticityToken. Where can I add the token that rails accept the create when I click on 'join' for a room ? I tried to put it in 'options' var but it doesn't work, nothing happens, on clincking the 'join' room button, it trigger the 'create' method but I need to add the token in the params sent to this method, but I can't unfortunately.

And by the way, do you have a documentation or something like this please ? I'm new to WebRTC and I don't get it how I have to use it and moreover how I have to use your gem.

Thanks

@jessehanley
Copy link

@novose did you manage to resolve this? Investigating myself atm.

@jessehanley
Copy link

Figured it out.

Rails 5 related issue. Patched it up (removed protect_from_forgery with: :exception from my controller) and it works.

Thread that lead me to the solution: https://stackoverflow.com/questions/38331496/rails-5-actioncontrollerinvalidauthenticitytoken-error

Would tread carefully playing in this area.

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

2 participants