Rails 5 WebSockets “Request origin not allowed” [Solution]

Since I have spent about 15 minutes today trying to figure out why my WebSockets are not updating in development, I have decided to put quick fix here, hopefully this will be useful.


Anatoly Spektor

Let me help you!

Hey, I am Anatoly, founder of this blog. I would love to help you! I have 6+ years experience in Web Development and IT Leadership. Lets work together on your project! Leave me your email and I will schedule a FREE Consultation!

When I started ActionCable I got this error:


  1.  Go to
  2.  Add following line:
  3. Restart Web Server
  4. Enjoy!

Click Subscribe to stay tuned for some cool Rails 5 ActionCable examples!



Anatoly Spektor

IT Consultant with 6 years experience in Software Development and IT Leadership. Participated in such projects as Eclipse IDE, Big Blue Button, Toronto 2015 Panam Games.

Related Posts

Join the Discussion

Your email address will not be published. Required fields are marked *


  1. […] have create separate post how to resolve it ,but for your convenience, I will repeat it […]

  2. Bruno Wego

    Thank you very much, exactly what I needed.

  3. Michal

    Great Job. You just saved my time :)