We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello there,
When connecting my flutter app to rails, Im sending headers to authorize:
cable = ActionCable.Connect(constants.socketHost, headers: { "Authorization": constants.socketToken, }, onConnected: () {
Is there a way to do the same with actioncable-vue?
Thanks,
The text was updated successfully, but these errors were encountered:
Any ideas?
Makes sense if I create this issue on rails/actioncable?
Sorry, something went wrong.
I've run into the same issue. Passing authentication tokens in the url as the docs propose is widely insecure and bad practice. Apparently passing headers on the initial http upgrade request is unsupported in browsers: https://stackoverflow.com/questions/4361173/http-headers-in-websockets-client-api
I guess the next best option is to send the token over the websocket channel after connection, and then start streaming the data that requires auth.
No branches or pull requests
Hello there,
When connecting my flutter app to rails, Im sending headers to authorize:
Is there a way to do the same with actioncable-vue?
Thanks,
The text was updated successfully, but these errors were encountered: